Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK!izqqsh.pmnu[package Filter::sh; use Filter::Util::Exec ; use strict ; use warnings ; our $VERSION = "1.58" ; sub import { my($self, @args) = @_ ; unless (@args) { require Carp; Carp::croak("Usage: use Filter::sh 'command'"); } if ($^O eq 'MSWin32') { Filter::Util::Exec::filter_add ($self, 'cmd', '/c', "@args") ; } else { Filter::Util::Exec::filter_add ($self, 'sh', '-c', "@args") ; } } 1 ; __END__ =head1 NAME Filter::sh - sh source filter =head1 SYNOPSIS use Filter::sh 'command' ; =head1 DESCRIPTION This filter pipes the current source file through the program which corresponds to the C parameter using the Bourne shell. As with all source filters its scope is limited to the current source file only. Every file you want to be processed by the filter must have a use Filter::sh 'command' ; near the top. Here is an example script which uses the filter: use Filter::sh 'tr XYZ PQR' ; $a = 1 ; print "XYZ a = $a\n" ; And here is what it will output: PQR = 1 =head1 WARNING You should be I careful when using this filter. Because of the way the filter is implemented it is possible to end up with deadlock. Be especially careful when stacking multiple instances of the filter in a single source file. =head1 AUTHOR Paul Marquess =head1 DATE 11th December 1995. =cut PK!D0η decrypt.pmnu[package Filter::decrypt ; require 5.006 ; require XSLoader; our $VERSION = "1.58" ; XSLoader::load('Filter::decrypt'); 1; __END__ =head1 NAME Filter::decrypt - template for a decrypt source filter =head1 SYNOPSIS use Filter::decrypt ; =head1 DESCRIPTION This is a sample decrypting source filter. Although this is a fully functional source filter and it does implement a I simple decrypt algorithm, it is I intended to be used as it is supplied. Consider it to be a template which you can combine with a proper decryption algorithm to develop your own decryption filter. =head1 WARNING It is important to note that a decryption filter can I provide complete security against attack. At some point the parser within Perl needs to be able to scan the original decrypted source. That means that at some stage fragments of the source will exist in a memory buffer. Also, with the introduction of the Perl Compiler backend modules, and the B::Deparse module in particular, using a Source Filter to hide source code is becoming an increasingly futile exercise. The best you can hope to achieve by decrypting your Perl source using a source filter is to make it unavailable to the casual user. Given that proviso, there are a number of things you can do to make life more difficult for the prospective cracker. =over 5 =item 1. Strip the Perl binary to remove all symbols. =item 2. Build the decrypt extension using static linking. If the extension is provided as a dynamic module, there is nothing to stop someone from linking it at run time with a modified Perl binary. =item 3. Do not build Perl with C<-DDEBUGGING>. If you do then your source can be retrieved with the C<-DP> command line option. The sample filter contains logic to detect the C option. =item 4. Do not build Perl with C debugging support enabled. =item 5. Do not implement the decryption filter as a sub-process (like the cpp source filter). It is possible to peek into the pipe that connects to the sub-process. =item 6. Check that the Perl Compiler isn't being used. There is code in the BOOT: section of decrypt.xs that shows how to detect the presence of the Compiler. Make sure you include it in your module. Assuming you haven't taken any steps to spot when the compiler is in use and you have an encrypted Perl script called "myscript.pl", you can get access the source code inside it using the perl Compiler backend, like this perl -MO=Deparse myscript.pl Note that even if you have included the BOOT: test, it is still possible to use the Deparse module to get the source code for individual subroutines. =item 7. Do not use the decrypt filter as-is. The algorithm used in this filter has been purposefully left simple. =back If you feel that the source filtering mechanism is not secure enough you could try using the unexec/undump method. See the Perl FAQ for further details. =head1 AUTHOR Paul Marquess =head1 DATE 19th December 1995 =cut PK!lcpp.pmnu[package Filter::cpp; use Filter::Util::Exec ; use Config ; use strict; use warnings; our $VERSION = '1.58' ; my $cpp; my $sep; if ($^O eq 'MSWin32') { $cpp = 'cpp.exe' ; $sep = ';'; } else { ($cpp) = $Config{cppstdin} =~ /^(\S+)/; $sep = ':'; } if (! $cpp) { require Carp; Carp::croak ("Cannot find cpp\n"); } # Check if cpp is installed if ( ! -x $cpp) { my $foundCPP = 0 ; foreach my $dir (split($sep, $ENV{PATH}), '') { if (-x "$dir/$cpp") { $foundCPP = 1; last ; } } if (! $foundCPP) { require Carp; Carp::croak("Cannot find cpp\n"); } } sub import { my($self, @args) = @_ ; if ($^O eq 'MSWin32') { Filter::Util::Exec::filter_add ($self, 'cmd', '/c', "cpp.exe 2>nul") ; } else { Filter::Util::Exec::filter_add ($self, 'sh', '-c', "$Config{'cppstdin'} $Config{'cppminus'} 2>/dev/null") ; } } 1 ; __END__ =head1 NAME Filter::cpp - cpp source filter =head1 SYNOPSIS use Filter::cpp ; =head1 DESCRIPTION This source filter pipes the current source file through the C pre-processor (cpp) if it is available. As with all source filters its scope is limited to the current source file only. Every file you want to be processed by the filter must have a use Filter::cpp ; near the top. Here is an example script which uses the filter: use Filter::cpp ; #define FRED 1 $a = 2 + FRED ; print "a = $a\n" ; #ifdef FRED print "Hello FRED\n" ; #else print "Where is FRED\n" ; #endif And here is what it will output: a = 3 Hello FRED This example below, provided by Michael G Schwern, shows a clever way to get Perl to use a C pre-processor macro when the Filter::cpp module is available, or to use a Perl sub when it is not. # use Filter::cpp if we can. BEGIN { eval 'use Filter::cpp' } sub PRINT { my($string) = shift; #define PRINT($string) \ (print $string."\n") } PRINT("Mu"); Look at Michael's Tie::VecArray module for a practical use. =head1 AUTHOR Paul Marquess =head1 DATE 11th December 1995. =cut PK!# Util/Exec.pmnu[package Filter::Util::Exec ; require 5.006 ; require XSLoader; our $VERSION = "1.58" ; XSLoader::load('Filter::Util::Exec'); 1 ; __END__ =head1 NAME Filter::Util::Exec - exec source filter =head1 SYNOPSIS use Filter::Util::Exec; =head1 DESCRIPTION This module is provides the interface to allow the creation of I which use a Unix coprocess. See L, L and L for examples of the use of this module. Note that the size of the buffers is limited to 32-bit. =head2 B The function, C installs a filter. It takes one parameter which should be a reference. The kind of reference used will dictate which of the two filter types will be used. If a CODE reference is used then a I will be assumed. If a CODE reference is not used, a I will be assumed. In a I, the reference can be used to store context information. The reference will be I into the package by C. See L for examples of using context information using both I and I. =head1 AUTHOR Paul Marquess =head1 DATE 11th December 1995. =cut PK!U66 Util/Call.pmnu[# Call.pm # # Copyright (c) 1995-2011 Paul Marquess. All rights reserved. # Copyright (c) 2011-2014 Reini Urban. All rights reserved. # Copyright (c) 2014-2017 cPanel Inc. All rights reserved. # # This program is free software; you can redistribute it and/or # modify it under the same terms as Perl itself. package Filter::Util::Call ; require 5.006 ; # our require Exporter; use XSLoader (); use strict; use warnings; our @ISA = qw(Exporter); our @EXPORT = qw( filter_add filter_del filter_read filter_read_exact) ; our $VERSION = "1.58" ; our $XS_VERSION = $VERSION; $VERSION = eval $VERSION; sub filter_read_exact($) { my ($size) = @_ ; my ($left) = $size ; my ($status) ; unless ( $size > 0 ) { require Carp; Carp::croak("filter_read_exact: size parameter must be > 0"); } # try to read a block which is exactly $size bytes long while ($left and ($status = filter_read($left)) > 0) { $left = $size - length $_ ; } # EOF with pending data is a special case return 1 if $status == 0 and length $_ ; return $status ; } sub filter_add($) { my($obj) = @_ ; # Did we get a code reference? my $coderef = (ref $obj eq 'CODE'); # If the parameter isn't already a reference, make it one. if (!$coderef and (!ref($obj) or ref($obj) =~ /^ARRAY|HASH$/)) { $obj = bless (\$obj, (caller)[0]); } # finish off the installation of the filter in C. Filter::Util::Call::real_import($obj, (caller)[0], $coderef) ; } XSLoader::load('Filter::Util::Call'); 1; __END__ =head1 NAME Filter::Util::Call - Perl Source Filter Utility Module =head1 SYNOPSIS use Filter::Util::Call ; =head1 DESCRIPTION This module provides you with the framework to write I in Perl. An alternate interface to Filter::Util::Call is now available. See L for more details. A I is implemented as a Perl module. The structure of the module can take one of two broadly similar formats. To distinguish between them, the first will be referred to as I and the second as I. Here is a skeleton for the I: package MyFilter ; use Filter::Util::Call ; sub import { my($type, @arguments) = @_ ; filter_add([]) ; } sub filter { my($self) = @_ ; my($status) ; $status = filter_read() ; $status ; } 1 ; and this is the equivalent skeleton for the I: package MyFilter ; use Filter::Util::Call ; sub import { my($type, @arguments) = @_ ; filter_add( sub { my($status) ; $status = filter_read() ; $status ; } ) } 1 ; To make use of either of the two filter modules above, place the line below in a Perl source file. use MyFilter; In fact, the skeleton modules shown above are fully functional I, albeit fairly useless ones. All they does is filter the source stream without modifying it at all. As you can see both modules have a broadly similar structure. They both make use of the C module and both have an C method. The difference between them is that the I requires a I method, whereas the I gets the equivalent of a I method with the anonymous sub passed to I. To make proper use of the I shown above you need to have a good understanding of the concept of a I. See L for more details on the mechanics of I. =head2 B The following functions are exported by C: filter_add() filter_read() filter_read_exact() filter_del() =head2 B The C method is used to create an instance of the filter. It is called indirectly by Perl when it encounters the C line in a source file (See L for more details on C). It will always have at least one parameter automatically passed by Perl - this corresponds to the name of the package. In the example above it will be C<"MyFilter">. Apart from the first parameter, import can accept an optional list of parameters. These can be used to pass parameters to the filter. For example: use MyFilter qw(a b c) ; will result in the C<@_> array having the following values: @_ [0] => "MyFilter" @_ [1] => "a" @_ [2] => "b" @_ [3] => "c" Before terminating, the C function must explicitly install the filter by calling C. =head2 B The function, C, actually installs the filter. It takes one parameter which should be a reference. The kind of reference used will dictate which of the two filter types will be used. If a CODE reference is used then a I will be assumed. If a CODE reference is not used, a I will be assumed. In a I, the reference can be used to store context information. The reference will be I into the package by C, unless the reference was already blessed. See the filters at the end of this documents for examples of using context information using both I and I. =head2 B Both the C method used with a I and the anonymous sub used with a I is where the main processing for the filter is done. The big difference between the two types of filter is that the I uses the object passed to the method to store any context data, whereas the I uses the lexical variables that are maintained by the closure. Note that the single parameter passed to the I, C<$self>, is the same reference that was passed to C blessed into the filter's package. See the example filters later on for details of using C<$self>. Here is a list of the common features of the anonymous sub and the C method. =over 5 =item B<$_> Although C<$_> doesn't actually appear explicitly in the sample filters above, it is implicitly used in a number of places. Firstly, when either C or the anonymous sub are called, a local copy of C<$_> will automatically be created. It will always contain the empty string at this point. Next, both C and C will append any source data that is read to the end of C<$_>. Finally, when C or the anonymous sub are finished processing, they are expected to return the filtered source using C<$_>. This implicit use of C<$_> greatly simplifies the filter. =item B<$status> The status value that is returned by the user's C method or anonymous sub and the C and C functions take the same set of values, namely: < 0 Error = 0 EOF > 0 OK =item B and B These functions are used by the filter to obtain either a line or block from the next filter in the chain or the actual source file if there aren't any other filters. The function C takes two forms: $status = filter_read() ; $status = filter_read($size) ; The first form is used to request a I, the second requests a I. In line mode, C will append the next source line to the end of the C<$_> scalar. In block mode, C will append a block of data which is <= C<$size> to the end of the C<$_> scalar. It is important to emphasise the that C will not necessarily read a block which is I C<$size> bytes. If you need to be able to read a block which has an exact size, you can use the function C. It works identically to C in block mode, except it will try to read a block which is exactly C<$size> bytes in length. The only circumstances when it will not return a block which is C<$size> bytes long is on EOF or error. It is I important to check the value of C<$status> after I call to C or C. =item B The function, C, is used to disable the current filter. It does not affect the running of the filter. All it does is tell Perl not to call filter any more. See L for details. =item I Internal function which adds the filter, based on the L argument type. =item I May be used to disable a filter, but is rarely needed. See L. =back =head1 LIMITATIONS See L for an overview of the general problems filtering code in a textual line-level only. =over =item __DATA__ is ignored The content from the __DATA__ block is not filtered. This is a serious limitation, e.g. for the L module. See L for more. =item Max. codesize limited to 32-bit Currently internal buffer lengths are limited to 32-bit only. =back =head1 EXAMPLES Here are a few examples which illustrate the key concepts - as such most of them are of little practical use. The C sub-directory has copies of all these filters implemented both as I and as I. =head2 Example 1: A simple filter. Below is a I which is hard-wired to replace all occurrences of the string C<"Joe"> to C<"Jim">. Not particularly Useful, but it is the first example and I wanted to keep it simple. package Joe2Jim ; use Filter::Util::Call ; sub import { my($type) = @_ ; filter_add(bless []) ; } sub filter { my($self) = @_ ; my($status) ; s/Joe/Jim/g if ($status = filter_read()) > 0 ; $status ; } 1 ; Here is an example of using the filter: use Joe2Jim ; print "Where is Joe?\n" ; And this is what the script above will print: Where is Jim? =head2 Example 2: Using the context The previous example was not particularly useful. To make it more general purpose we will make use of the context data and allow any arbitrary I and I strings to be used. This time we will use a I. To reflect its enhanced role, the filter is called C. package Subst ; use Filter::Util::Call ; use Carp ; sub import { croak("usage: use Subst qw(from to)") unless @_ == 3 ; my ($self, $from, $to) = @_ ; filter_add( sub { my ($status) ; s/$from/$to/ if ($status = filter_read()) > 0 ; $status ; }) } 1 ; and is used like this: use Subst qw(Joe Jim) ; print "Where is Joe?\n" ; =head2 Example 3: Using the context within the filter Here is a filter which a variation of the C filter. As well as substituting all occurrences of C<"Joe"> to C<"Jim"> it keeps a count of the number of substitutions made in the context object. Once EOF is detected (C<$status> is zero) the filter will insert an extra line into the source stream. When this extra line is executed it will print a count of the number of substitutions actually made. Note that C<$status> is set to C<1> in this case. package Count ; use Filter::Util::Call ; sub filter { my ($self) = @_ ; my ($status) ; if (($status = filter_read()) > 0 ) { s/Joe/Jim/g ; ++ $$self ; } elsif ($$self >= 0) { # EOF $_ = "print q[Made ${$self} substitutions\n]" ; $status = 1 ; $$self = -1 ; } $status ; } sub import { my ($self) = @_ ; my ($count) = 0 ; filter_add(\$count) ; } 1 ; Here is a script which uses it: use Count ; print "Hello Joe\n" ; print "Where is Joe\n" ; Outputs: Hello Jim Where is Jim Made 2 substitutions =head2 Example 4: Using filter_del Another variation on a theme. This time we will modify the C filter to allow a starting and stopping pattern to be specified as well as the I and I patterns. If you know the I editor, it is the equivalent of this command: :/start/,/stop/s/from/to/ When used as a filter we want to invoke it like this: use NewSubst qw(start stop from to) ; Here is the module. package NewSubst ; use Filter::Util::Call ; use Carp ; sub import { my ($self, $start, $stop, $from, $to) = @_ ; my ($found) = 0 ; croak("usage: use Subst qw(start stop from to)") unless @_ == 5 ; filter_add( sub { my ($status) ; if (($status = filter_read()) > 0) { $found = 1 if $found == 0 and /$start/ ; if ($found) { s/$from/$to/ ; filter_del() if /$stop/ ; } } $status ; } ) } 1 ; =head1 Filter::Simple If you intend using the Filter::Call functionality, I would strongly recommend that you check out Damian Conway's excellent Filter::Simple module. Damian's module provides a much cleaner interface than Filter::Util::Call. Although it doesn't allow the fine control that Filter::Util::Call does, it should be adequate for the majority of applications. It's available at http://search.cpan.org/dist/Filter-Simple/ =head1 AUTHOR Paul Marquess =head1 DATE 26th January 1996 =head1 LICENSE Copyright (c) 1995-2011 Paul Marquess. All rights reserved. Copyright (c) 2011-2014 Reini Urban. All rights reserved. Copyright (c) 2014-2017 cPanel Inc. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut PK!RWWUtil/perlfilter.podnu[=head1 NAME perlfilter - Source Filters =head1 DESCRIPTION This article is about a little-known feature of Perl called I. Source filters alter the program text of a module before Perl sees it, much as a C preprocessor alters the source text of a C program before the compiler sees it. This article tells you more about what source filters are, how they work, and how to write your own. The original purpose of source filters was to let you encrypt your program source to prevent casual piracy. This isn't all they can do, as you'll soon learn. But first, the basics. =head1 CONCEPTS Before the Perl interpreter can execute a Perl script, it must first read it from a file into memory for parsing and compilation. If that script itself includes other scripts with a C or C statement, then each of those scripts will have to be read from their respective files as well. Now think of each logical connection between the Perl parser and an individual file as a I. A source stream is created when the Perl parser opens a file, it continues to exist as the source code is read into memory, and it is destroyed when Perl is finished parsing the file. If the parser encounters a C or C statement in a source stream, a new and distinct stream is created just for that file. The diagram below represents a single source stream, with the flow of source from a Perl script file on the left into the Perl parser on the right. This is how Perl normally operates. file -------> parser There are two important points to remember: =over 5 =item 1. Although there can be any number of source streams in existence at any given time, only one will be active. =item 2. Every source stream is associated with only one file. =back A source filter is a special kind of Perl module that intercepts and modifies a source stream before it reaches the parser. A source filter changes our diagram like this: file ----> filter ----> parser If that doesn't make much sense, consider the analogy of a command pipeline. Say you have a shell script stored in the compressed file I. The simple pipeline command below runs the script without needing to create a temporary file to hold the uncompressed file. gunzip -c trial.gz | sh In this case, the data flow from the pipeline can be represented as follows: trial.gz ----> gunzip ----> sh With source filters, you can store the text of your script compressed and use a source filter to uncompress it for Perl's parser: compressed gunzip Perl program ---> source filter ---> parser =head1 USING FILTERS So how do you use a source filter in a Perl script? Above, I said that a source filter is just a special kind of module. Like all Perl modules, a source filter is invoked with a use statement. Say you want to pass your Perl source through the C preprocessor before execution. As it happens, the source filters distribution comes with a C preprocessor filter module called Filter::cpp. Below is an example program, C, which makes use of this filter. Line numbers have been added to allow specific lines to be referenced easily. 1: use Filter::cpp; 2: #define TRUE 1 3: $a = TRUE; 4: print "a = $a\n"; When you execute this script, Perl creates a source stream for the file. Before the parser processes any of the lines from the file, the source stream looks like this: cpp_test ---------> parser Line 1, C, includes and installs the C filter module. All source filters work this way. The use statement is compiled and executed at compile time, before any more of the file is read, and it attaches the cpp filter to the source stream behind the scenes. Now the data flow looks like this: cpp_test ----> cpp filter ----> parser As the parser reads the second and subsequent lines from the source stream, it feeds those lines through the C source filter before processing them. The C filter simply passes each line through the real C preprocessor. The output from the C preprocessor is then inserted back into the source stream by the filter. .-> cpp --. | | | | | <-' cpp_test ----> cpp filter ----> parser The parser then sees the following code: use Filter::cpp; $a = 1; print "a = $a\n"; Let's consider what happens when the filtered code includes another module with use: 1: use Filter::cpp; 2: #define TRUE 1 3: use Fred; 4: $a = TRUE; 5: print "a = $a\n"; The C filter does not apply to the text of the Fred module, only to the text of the file that used it (C). Although the use statement on line 3 will pass through the cpp filter, the module that gets included (C) will not. The source streams look like this after line 3 has been parsed and before line 4 is parsed: cpp_test ---> cpp filter ---> parser (INACTIVE) Fred.pm ----> parser As you can see, a new stream has been created for reading the source from C. This stream will remain active until all of C has been parsed. The source stream for C will still exist, but is inactive. Once the parser has finished reading Fred.pm, the source stream associated with it will be destroyed. The source stream for C then becomes active again and the parser reads line 4 and subsequent lines from C. You can use more than one source filter on a single file. Similarly, you can reuse the same filter in as many files as you like. For example, if you have a uuencoded and compressed source file, it is possible to stack a uudecode filter and an uncompression filter like this: use Filter::uudecode; use Filter::uncompress; M'XL(".H7/;1I;_>_I3=&E=%:F*I"T?22Q/ M6]9* ... Once the first line has been processed, the flow will look like this: file ---> uudecode ---> uncompress ---> parser filter filter Data flows through filters in the same order they appear in the source file. The uudecode filter appeared before the uncompress filter, so the source file will be uudecoded before it's uncompressed. =head1 WRITING A SOURCE FILTER There are three ways to write your own source filter. You can write it in C, use an external program as a filter, or write the filter in Perl. I won't cover the first two in any great detail, so I'll get them out of the way first. Writing the filter in Perl is most convenient, so I'll devote the most space to it. =head1 WRITING A SOURCE FILTER IN C The first of the three available techniques is to write the filter completely in C. The external module you create interfaces directly with the source filter hooks provided by Perl. The advantage of this technique is that you have complete control over the implementation of your filter. The big disadvantage is the increased complexity required to write the filter - not only do you need to understand the source filter hooks, but you also need a reasonable knowledge of Perl guts. One of the few times it is worth going to this trouble is when writing a source scrambler. The C filter (which unscrambles the source before Perl parses it) included with the source filter distribution is an example of a C source filter (see Decryption Filters, below). =over 5 =item B All decryption filters work on the principle of "security through obscurity." Regardless of how well you write a decryption filter and how strong your encryption algorithm is, anyone determined enough can retrieve the original source code. The reason is quite simple - once the decryption filter has decrypted the source back to its original form, fragments of it will be stored in the computer's memory as Perl parses it. The source might only be in memory for a short period of time, but anyone possessing a debugger, skill, and lots of patience can eventually reconstruct your program. That said, there are a number of steps that can be taken to make life difficult for the potential cracker. The most important: Write your decryption filter in C and statically link the decryption module into the Perl binary. For further tips to make life difficult for the potential cracker, see the file I in the source filters distribution. =back =head1 CREATING A SOURCE FILTER AS A SEPARATE EXECUTABLE An alternative to writing the filter in C is to create a separate executable in the language of your choice. The separate executable reads from standard input, does whatever processing is necessary, and writes the filtered data to standard output. C is an example of a source filter implemented as a separate executable - the executable is the C preprocessor bundled with your C compiler. The source filter distribution includes two modules that simplify this task: C and C. Both allow you to run any external executable. Both use a coprocess to control the flow of data into and out of the external executable. (For details on coprocesses, see Stephens, W.R., "Advanced Programming in the UNIX Environment." Addison-Wesley, ISBN 0-210-56317-7, pages 441-445.) The difference between them is that C spawns the external command directly, while C spawns a shell to execute the external command. (Unix uses the Bourne shell; NT uses the cmd shell.) Spawning a shell allows you to make use of the shell metacharacters and redirection facilities. Here is an example script that uses C: use Filter::sh 'tr XYZ PQR'; $a = 1; print "XYZ a = $a\n"; The output you'll get when the script is executed: PQR a = 1 Writing a source filter as a separate executable works fine, but a small performance penalty is incurred. For example, if you execute the small example above, a separate subprocess will be created to run the Unix C command. Each use of the filter requires its own subprocess. If creating subprocesses is expensive on your system, you might want to consider one of the other options for creating source filters. =head1 WRITING A SOURCE FILTER IN PERL The easiest and most portable option available for creating your own source filter is to write it completely in Perl. To distinguish this from the previous two techniques, I'll call it a Perl source filter. To help understand how to write a Perl source filter we need an example to study. Here is a complete source filter that performs rot13 decoding. (Rot13 is a very simple encryption scheme used in Usenet postings to hide the contents of offensive posts. It moves every letter forward thirteen places, so that A becomes N, B becomes O, and Z becomes M.) package Rot13; use Filter::Util::Call; sub import { my ($type) = @_; my ($ref) = []; filter_add(bless $ref); } sub filter { my ($self) = @_; my ($status); tr/n-za-mN-ZA-M/a-zA-Z/ if ($status = filter_read()) > 0; $status; } 1; All Perl source filters are implemented as Perl classes and have the same basic structure as the example above. First, we include the C module, which exports a number of functions into your filter's namespace. The filter shown above uses two of these functions, C and C. Next, we create the filter object and associate it with the source stream by defining the C function. If you know Perl well enough, you know that C is called automatically every time a module is included with a use statement. This makes C the ideal place to both create and install a filter object. In the example filter, the object (C<$ref>) is blessed just like any other Perl object. Our example uses an anonymous array, but this isn't a requirement. Because this example doesn't need to store any context information, we could have used a scalar or hash reference just as well. The next section demonstrates context data. The association between the filter object and the source stream is made with the C function. This takes a filter object as a parameter (C<$ref> in this case) and installs it in the source stream. Finally, there is the code that actually does the filtering. For this type of Perl source filter, all the filtering is done in a method called C. (It is also possible to write a Perl source filter using a closure. See the C manual page for more details.) It's called every time the Perl parser needs another line of source to process. The C method, in turn, reads lines from the source stream using the C function. If a line was available from the source stream, C returns a status value greater than zero and appends the line to C<$_>. A status value of zero indicates end-of-file, less than zero means an error. The filter function itself is expected to return its status in the same way, and put the filtered line it wants written to the source stream in C<$_>. The use of C<$_> accounts for the brevity of most Perl source filters. In order to make use of the rot13 filter we need some way of encoding the source file in rot13 format. The script below, C, does just that. die "usage mkrot13 filename\n" unless @ARGV; my $in = $ARGV[0]; my $out = "$in.tmp"; open(IN, "<$in") or die "Cannot open file $in: $!\n"; open(OUT, ">$out") or die "Cannot open file $out: $!\n"; print OUT "use Rot13;\n"; while () { tr/a-zA-Z/n-za-mN-ZA-M/; print OUT; } close IN; close OUT; unlink $in; rename $out, $in; If we encrypt this with C: print " hello fred \n"; the result will be this: use Rot13; cevag "uryyb serq\a"; Running it produces this output: hello fred =head1 USING CONTEXT: THE DEBUG FILTER The rot13 example was a trivial example. Here's another demonstration that shows off a few more features. Say you wanted to include a lot of debugging code in your Perl script during development, but you didn't want it available in the released product. Source filters offer a solution. In order to keep the example simple, let's say you wanted the debugging output to be controlled by an environment variable, C. Debugging code is enabled if the variable exists, otherwise it is disabled. Two special marker lines will bracket debugging code, like this: ## DEBUG_BEGIN if ($year > 1999) { warn "Debug: millennium bug in year $year\n"; } ## DEBUG_END The filter ensures that Perl parses the code between the and C markers only when the C environment variable exists. That means that when C does exist, the code above should be passed through the filter unchanged. The marker lines can also be passed through as-is, because the Perl parser will see them as comment lines. When C isn't set, we need a way to disable the debug code. A simple way to achieve that is to convert the lines between the two markers into comments: ## DEBUG_BEGIN #if ($year > 1999) { # warn "Debug: millennium bug in year $year\n"; #} ## DEBUG_END Here is the complete Debug filter: package Debug; use strict; use warnings; use Filter::Util::Call; use constant TRUE => 1; use constant FALSE => 0; sub import { my ($type) = @_; my (%context) = ( Enabled => defined $ENV{DEBUG}, InTraceBlock => FALSE, Filename => (caller)[1], LineNo => 0, LastBegin => 0, ); filter_add(bless \%context); } sub Die { my ($self) = shift; my ($message) = shift; my ($line_no) = shift || $self->{LastBegin}; die "$message at $self->{Filename} line $line_no.\n" } sub filter { my ($self) = @_; my ($status); $status = filter_read(); ++ $self->{LineNo}; # deal with EOF/error first if ($status <= 0) { $self->Die("DEBUG_BEGIN has no DEBUG_END") if $self->{InTraceBlock}; return $status; } if ($self->{InTraceBlock}) { if (/^\s*##\s*DEBUG_BEGIN/ ) { $self->Die("Nested DEBUG_BEGIN", $self->{LineNo}) } elsif (/^\s*##\s*DEBUG_END/) { $self->{InTraceBlock} = FALSE; } # comment out the debug lines when the filter is disabled s/^/#/ if ! $self->{Enabled}; } elsif ( /^\s*##\s*DEBUG_BEGIN/ ) { $self->{InTraceBlock} = TRUE; $self->{LastBegin} = $self->{LineNo}; } elsif ( /^\s*##\s*DEBUG_END/ ) { $self->Die("DEBUG_END has no DEBUG_BEGIN", $self->{LineNo}); } return $status; } 1; The big difference between this filter and the previous example is the use of context data in the filter object. The filter object is based on a hash reference, and is used to keep various pieces of context information between calls to the filter function. All but two of the hash fields are used for error reporting. The first of those two, Enabled, is used by the filter to determine whether the debugging code should be given to the Perl parser. The second, InTraceBlock, is true when the filter has encountered a C line, but has not yet encountered the following C line. If you ignore all the error checking that most of the code does, the essence of the filter is as follows: sub filter { my ($self) = @_; my ($status); $status = filter_read(); # deal with EOF/error first return $status if $status <= 0; if ($self->{InTraceBlock}) { if (/^\s*##\s*DEBUG_END/) { $self->{InTraceBlock} = FALSE } # comment out debug lines when the filter is disabled s/^/#/ if ! $self->{Enabled}; } elsif ( /^\s*##\s*DEBUG_BEGIN/ ) { $self->{InTraceBlock} = TRUE; } return $status; } Be warned: just as the C-preprocessor doesn't know C, the Debug filter doesn't know Perl. It can be fooled quite easily: print < environment variable can then be used to control which blocks get included. Once you can identify individual blocks, try allowing them to be nested. That isn't difficult either. Here is an interesting idea that doesn't involve the Debug filter. Currently Perl subroutines have fairly limited support for formal parameter lists. You can specify the number of parameters and their type, but you still have to manually take them out of the C<@_> array yourself. Write a source filter that allows you to have a named parameter list. Such a filter would turn this: sub MySub ($first, $second, @rest) { ... } into this: sub MySub($$@) { my ($first) = shift; my ($second) = shift; my (@rest) = @_; ... } Finally, if you feel like a real challenge, have a go at writing a full-blown Perl macro preprocessor as a source filter. Borrow the useful features from the C preprocessor and any other macro processors you know. The tricky bit will be choosing how much knowledge of Perl's syntax you want your filter to have. =head1 LIMITATIONS Source filters only work on the string level, thus are highly limited in its ability to change source code on the fly. It cannot detect comments, quoted strings, heredocs, it is no replacement for a real parser. The only stable usage for source filters are encryption, compression, or the byteloader, to translate binary code back to source code. See for example the limitations in L, which uses source filters, and thus is does not work inside a string eval, the presence of regexes with embedded newlines that are specified with raw C delimiters and don't have a modifier C are indistinguishable from code chunks beginning with the division operator C. As a workaround you must use C or C for such patterns. Also, the presence of regexes specified with raw C delimiters may cause mysterious errors. The workaround is to use C instead. See L Currently the content of the C<__DATA__> block is not filtered. Currently internal buffer lengths are limited to 32-bit only. =head1 THINGS TO LOOK OUT FOR =over 5 =item Some Filters Clobber the C Handle Some source filters use the C handle to read the calling program. When using these source filters you cannot rely on this handle, nor expect any particular kind of behavior when operating on it. Filters based on Filter::Util::Call (and therefore Filter::Simple) do not alter the C filehandle, but on the other hand totally ignore the text after C<__DATA__>. =back =head1 REQUIREMENTS The Source Filters distribution is available on CPAN, in CPAN/modules/by-module/Filter Starting from Perl 5.8 Filter::Util::Call (the core part of the Source Filters distribution) is part of the standard Perl distribution. Also included is a friendlier interface called Filter::Simple, by Damian Conway. =head1 AUTHOR Paul Marquess EPaul.Marquess@btinternet.comE Reini Urban Erurban@cpan.orgE =head1 Copyrights The first version of this article originally appeared in The Perl Journal #11, and is copyright 1998 The Perl Journal. It appears courtesy of Jon Orwant and The Perl Journal. This document may be distributed under the same terms as Perl itself. PK!د[exec.pmnu[package Filter::exec ; use Filter::Util::Exec ; use strict ; use warnings ; our $VERSION = "1.58" ; sub import { my($self, @args) = @_ ; unless (@args) { require Carp; Carp::croak("Usage: use Filter::exec 'command'"); } Filter::Util::Exec::filter_add($self, @args) ; } 1 ; __END__ =head1 NAME Filter::exec - exec source filter =head1 SYNOPSIS use Filter::exec qw(command parameters) ; =head1 DESCRIPTION This filter pipes the current source file through the program which corresponds to the C parameter. As with all source filters its scope is limited to the current source file only. Every file you want to be processed by the filter must have a use Filter::exec qw(command ) ; near the top. Here is an example script which uses the filter: use Filter::exec qw(tr XYZ PQR) ; $a = 1 ; print "XYZ a = $a\n" ; And here is what it will output: PQR = 1 =head1 WARNING You should be I careful when using this filter. Because of the way the filter is implemented it is possible to end up with deadlock. Be especially careful when stacking multiple instances of the filter in a single source file. =head1 AUTHOR Paul Marquess =head1 DATE 11th December 1995. =cut PK!Itee.pmnu[package Filter::tee ; require 5.006 ; require XSLoader; our $VERSION = "1.58" ; XSLoader::load('Filter::tee'); 1; __END__ =head1 NAME Filter::tee - tee source filter =head1 SYNOPSIS use Filter::tee 'filename' ; use Filter::tee '>filename' ; use Filter::tee '>>filename' ; =head1 DESCRIPTION This filter copies all text from the line after the C in the current source file to the file specified by the parameter C. By default and when the filename is prefixed with a '>' the output file will be emptied first if it already exists. If the output filename is prefixed with '>>' it will be opened for appending. This filter is useful as a debugging aid when developing other source filters. =head1 AUTHOR Paul Marquess =head1 DATE 20th June 1995. =cut PK!d,]..decrypt/decrypt.sonuȯELF> @'@8@      88 8 $$ PtdLLQtdRtd    GNU%M+c|r7dQ@BE|FqX ep pE3d, F"X    __gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalizelibpthread.so.0PL_thr_keypthread_getspecificPerl_newSVPerl_filter_addPerl_av_lenPerl_croak_nocontextPerl_croak_xs_usagePerl_filter_readmemmemPerl_sv_catpvn_flagsPerl_sv_growPerl_filter_delboot_Filter__decryptPerl_xs_handshakePerl_newXS_deffilePerl_get_hvPerl_get_avPerl_xs_boot_epiloglibperl.so.5.26libc.so.6_edata__bss_start_endGLIBC_2.2.5U ui ui   p ( 0 0 0      P X ` h p x                 HHy HtH5 % hhhhhhhhqhah Qh Ah 1h !h hhh% D% D% D% D% D%} D%u D%m D%e D%] D%U D%M D%E D%= D%5 D%- D%% DH% fDH=9 H2 H9tH Ht H=  H5 H)HHH?HHtH HtfD= u+UH= Ht H= 9d ]wATUH-R S}}H}HPxHJHHxLc"wHދ}H@JH)HHHHH)QH[]A\fAUATIUSHH- } }L(}HPxHJHHxHcLH@HH)HHv}I}HO}H.}HH5HH}H@HyL#HID$XC %_DC HH@X` _HH@XH DHCHH@HH@XH@H}H@XHH@HtF}HHt-}}HLHL4f1H}HB8H}H@$HB L(H[]A\A]H=1zH5Lf.AVAAUAATIUH- S@~49tH)Ë}LDHD9u[]A\A]A^@D)[]A\A]A^f.[D]A\A]A^@AWAVAUATUSHcH(L%d \$A<$HT$L$HA<$HHH@LQz%?C3Z4vu>;" sW$خ,zk57lVOFBH"g a*薯!^k~דxTfKa4ڭ7ncߊ~%/XWNf\&#\NëE;[7V m[DӺso?Ĉ;exG3(΁!d4ebv4h) q0.]Z>Y@Ҁj=mZ֛zPt[W|/+<(eapen!oYMJw @ wpEHTfC0HZlAw}UYFr '}fr}c F@"W{ȏx²G3i|c_4v$fpZyOϚI8 4828YqF-_Yͷ>NRfZ Џ3V]sYTglgjg6L=rrT{qQ$-^~Іre!viSS󤬎nr]x` 6~+>?7 ٮI6ϏkͱgYZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.note.gnu.property.init_array.fini_array.data.rel.ro.dynamic.got.bss.gnu.build.attributes.gnu_debuglink.gnu_debugdata $o((4( ``p08o4Eo@T^Bh` ` c n w } L   ( (0 08 88 8  ` "("xd&"PK!s.. tee/tee.sonuȯELF> @'@8@      88 8 $$ Ptd(((<<QtdRtd    GNU8spƩM&@  BEZɻ|qX (e: pm[, F" J 0  __gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalizelibpthread.so.0PL_thr_keypthread_getspecificPerl_sv_2pv_flagsPerl_newSV_typePerl_filter_addPerlIO_open__errno_locationstrerrorPerl_croak_nocontextPerl_croak_xs_usagePerl_filter_readPerl_PerlIO_writePerl_PerlIO_closePerl_filter_delboot_Filter__teePerl_xs_handshakePerl_newXS_deffilePerl_xs_boot_epiloglibperl.so.5.26libc.so.6_edata__bss_start_endGLIBC_2.2.5 ui Uui    ( @ 0 0      P X ` h p x                 HHi HtH5 % hhhhhhhhqhah Qh Ah 1h !h hhh% D% D% D%} D%u D%m D%e D%] D%U D%M D%E D%= D%5 D%- D%% D% D% DH% fDH=) H" H9tH Ht H= H5 H)HHH?HHtH HtfD= u+UH= Ht H= Id ]wAVAUIATUSH: ;s;L i;HPxHJHHxLc2SH@JI)IA7;AnHc,H;H@L$H@ % =;H@H,1HHHŋ;H&;IH5LH}>H5Bt]HHtmIU;HB(;HhvJT%H[]A\A]A^D[H@HHhpf.}>t H@HH58HH=H1H5L@AWAVAAUATIUSHH- }HY}HcӋ}HHH@HHLh(I$LxsDLH`Å~B}D)McMt$WHcLLHI$XH[]A\A]A^A_fD} LH} H5Hff.USHH ;L H HH1;;;H5`HH;H[H]0HHabwbmodule, filename1.58v5.26.0tee.cFilter::tee::importFilter::tee - cannot open file '%s': %s;<hXHh\zRx $ FJ w?:*3$"D<\FBE A(A0 (A BBBF H(FBE B(D0A8F@ 8C0A(B BBBG zRx @(H $ EAD jCDGNU @ 0 U p   ( o(`  8  ooooo8  0 @ P ` p GA$3a1 GA$3a1p GA$3a1GA$3a1 GA$3p864 GA$gcc 8.2.1 20180905 GA*GOW*EGA*GA+stack_clashGA*cf_protectionGA+GLIBCXX_ASSERTIONS GA*FORTIFYGA*GA! GA* GA!stack_realign GA$3h864 GA$3h864 GA$3a1GA$3a1GA$3a1 GA$3a1tee.so-1.58-2.el8.x86_64.debugCD7zXZִF!t/ 2]?Eh=ڊ2Nv o$&s64J\&˸*|h!Z teZB=bFTЭC]%OtZdY+\ҹTazǖ΅ om儈+B$Tsώ,S;>B_{2 C6b0b—dܐ{4ySx&o"gn[APl-5}8ï;;aЊe-@\=b> G$)\jr*=޸6zT3@ddRmdFc ECj}v3ZQt=HR7zO;hm%Kf+ڶ{ĕͶyba0?D~Gj^]JC֕dr#y`#÷ 0w˿<MN-x Ẑ^38QӽO v.g&71ф: z<kTϨZ){lx[åÙHx^P;܋_s/ RC *z:E7J|GViR# 2)&Y+>,3!sP4!H_KMy;Ƣbuca{ݔ)` Sǃ01|TAVR_%!`"TtB9-_بV,i),ΕO%ؠaz 9C`DeMOoR*:ZFJCû Mg;= `,V4gYZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.note.gnu.property.init_array.fini_array.data.rel.ro.dynamic.got.bss.gnu.build.attributes.gnu_debuglink.gnu_debugdata $o((4( ``p08o4Eo@T^Bhp p c n w } 2h((<hhH   ( (0 08 88 8  ` "$"t\&"PK!3h>>Util/Exec/Exec.sonuȯELF> @7@8@H&H& ,, , tx ,, , $$(&(&(& Ptd$$$<<QtdRtd,, , ppGNUwvi}Q[+!;(@ ((*+BE|qX} {[e$vH p3+f, F"R0 e0 Y0  __gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalizelibpthread.so.0PL_thr_keypthread_getspecificmemmemPerl_sv_catpvn_flagsPerl_sv_grow__errno_locationPerl_filter_readwritestrerrorPerl_warn_nocontextsleepPerl_filter_delPerl_sv_2pv_flags__stack_chk_failfcntl64Perl_croak_nocontextPerl_safesysmallocPerl_newSVPerl_filter_addpipestdoutfflushstderrforkPerl_safesysfreePerl_PerlIO_closePerl_croak_xs_usagedup2execvpboot_Filter__Util__ExecPerl_xs_handshakePerl_newXS_flagsPerl_my_cxt_initPerl_xs_boot_epiloglibperl.so.5.26libc.so.6_edata__bss_start_endGLIBC_2.28GLIBC_2.4GLIBC_2.2.5H@jii uui Uui , , , , / / /  / / "/ %/ '. . . . . . .  .  /  /  / /  / (/ 0/ 8/ @/ H/ P/ X/ `/ h/ p/ x/ / / / /  / !/ #/ $/ %/ &HH" HtH5 % hhhhhhhhqhah Qh Ah 1h !h hhhhhhhhhhqhahQhAh1h!hhhh % D% D% D% D% D%} D%u D%m D%e D%] D%U D%M D%E D%= D%5 D%- D%% D% D% D%  D% D% D% D% D% D% D% D% D% D% D% D% D% DH= H H9tH Ht H= H5 H)HHH?HHtHm HtfD=i u+UH=J Ht H= IdA ]wAWE1AVAUATAUSHXL- HT$0L$(A}dH%(HD$H1/Hc A}H HHD$ Ht"A}HHIcHRLaU1SH|ŅxFtH[]f.‰߾1MÅyH=1H=1fAWAVAUATIUSHHH-, dH%(HD$81}}L(}HPxHJHHxkHcӍKH@L$HI)IAgIcHHHD$}HD$'Hc }H L< HIHt@AD$Ld$DD$HD$ H$D}H@N,H$LHI$AujI9\$t{}Lc|}H@J@ % =u]}H@JHH@HD$ AH@JH@I$AtHH=1I9\$uH\$HD$}HDLH5wHO}H}HLH|$(4H|$0"H H8H, H8"f.+8 LcExx|$,|$0|$(|$4H|$Hc\$4Lcd$(MI}LhHIL` IHX8IH}HCXIH@X` _IH@XH DIH@`IH@@}HXHcT$HTHHD$8dH3%(HH[]A\A]A^A_fDH=71Rd|$(|$,|$0|$4}!LHVHH=1%}LH2HH=1H5L|$(4|$4+|$0uI|$,t|$,Ht$H E8HH=H11|$0USHH ;8LU H NHHL1t; ;;E1L+H H%H5NH;H5s H;1HH ;H[H]HHfilter_sh(idx=%d, SvCUR(buf_sv)=%ld, maxlen=%d filter_sh(%d) - wants a block recycle(%d) - leaving %d [%s], returning %ld %ld [%s]*pipe_read(sv=%p, SvCUR(sv)=%ld, idx=%d, maxlen=%d) *pipe_read(%d) from pipe returned %d [%*s] *pipe_read(%d) returned %d, errno = %d %s *pipe_read(%d) -- EOF <######### *pipe_write(%d) Filt Rd returned %d %ld [%*s] *pipe_read(%d) closing pipe_out errno = %d %s *pipe_read(%d) wrote %d bytes to pipe filter_sh(%d) - pipe_read returned %d , returning %ld filter_sh(%d): pipe_read returned %d %ld: '%s'fcntl(f, F_GETFL) failed, RETVAL = %d, errno = %dcannot create a non-blocking pipe, RETVAL = %d, errno = %dexecvp failed for command '%s': %sFilter::Util::Exec::filter_addfilter_sh(%d) - wants a line *pipe_read(%d) - sleeping module, command, ...Filter::exec::import %s Can't get pipe for %sCan't fork for %s1.58v5.26.0Exec.c$@;8dT|T tpzRx $ FJ w?:*3$"D\\/FEB B(D0A8D 8A0A(B BBBK POA(wAHF T AAK LhFBB B(D0A8D: 8A0A(B BBBG $8EAD CDGNU, U8H , , o(`  .    ooh oo o,  0@P`p 0@P`pGA$3a1  GA$3a1 GA$3a1 GA$3a1  GA$3p864 GA$gcc 8.2.1 20180905 GA*GOW*EGA*GA+stack_clashGA*cf_protectionGA+GLIBCXX_ASSERTIONS GA*FORTIFYGA*GA! GA* GA!stack_realign GA$3h864   GA$3h864  GA$3a1 GA$3a1 GA$3a1 GA$3a1 Exec.so-1.58-2.el8.x86_64.debug7zXZִF!t/75]?Eh=ڊ2N.Ɠׄou)ƞDB|Sx RN$wךZ%`n\bSaDuwXp. 2ITXTM1-eo0>]>k!INKy5MX!JQu %1y/z7/SS:ePj~[j >֜>`bd[& `i\R4AJy 4>gwS,]I" l , j WvQT"x$B8.tiUf ;d,rpM[]'gc\02 f|!4 =9l2}ڈ"Zf|҇s. d *!)"wp'̮EhlBZvKGTVnJa ܰWg. 'Ah.HuL+KK4#'A$ 27TEU%K3fU 4GG;͉ki*gP^*{dA^y&ajjyȮ fi>eckXwJmAV;>F:)Lq"6]U e/qY~2WAb2pP4ɏ+2}xk80[ A&T*C2`W#j)fՆK?Q&ouu3$`y?z]kpʏ]v]T+4zIEpt.7 Y% gr񋮔lYs 0-jpbY+Qg?otKnFҍXgYZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.note.gnu.property.init_array.fini_array.data.rel.ro.dynamic.got.data.bss.gnu.build.attributes.gnu_debuglink.gnu_debugdata $o((4( `` 08o XEoh h `T ^B h c nw  } 2 $$<$$`(&(& , ,, ,, ,, ,. .X0 00 00`0 2$2xd6(PK!>>Util/Call/Call.sonuȯELF>@@7@8@H#H# ,, , lp ,, , $$(#(#(# Ptd!!!LLQtdRtd,, , hhGNUнל3@^'@0')*BE|qX|O )}1ue ">lZna, }F"0 0 0 B __gmon_start___ITM_deregisterTMCloneTable_ITM_registerTMCloneTable__cxa_finalizelibpthread.so.0Perl_filter_delPerl_sv_2pv_flagsPerl_push_scopePerl_savetmpsPerl_save_intPerl_save_sptrPerl_newSVpvPerl_call_methodPerl_warn_nocontextPerl_sv_setpvnPerl_sv_2mortalPerl_pop_scopememmemPerl_sv_catpvn_flagsPerl_filter_readPerl_sv_2iv_flagsPerl_call_svPerl_free_tmpsPerl_gv_add_by_typePerl_markstack_growPerl_stack_growPerl_croak_nocontextPerl_mg_sizePerl_croak_xs_usagePerl_newSVPerl_filter_addPerl_savepvPerl_newSVsvPerl_sv_newmortalPerl_sv_setiv_mgboot_Filter__Util__CallPerl_xs_handshakePerl_newXS_flagsPerl_my_cxt_initPerl_xs_boot_epiloglibperl.so.5.26libc.so.6_edata__bss_start_endGLIBC_2.2.5ui , , , , / / / !/ $. . . . . . . /  /  /  /  /  (/ 0/ 8/ @/ H/ P/ X/ `/ h/ p/ x/ / / / / / / /  / "/ #/ $/ %/ &HH)" HtH5 % hhhhhhhhqhah Qh Ah 1h !h hhhhhhhhhhqhahQhAh1h!hhhh h!h"% D% D% D% D% D% D%} D%u D%m D%e D%] D%U D%M D%E D%= D%5 D%- D%% D% D% D%  D% D% D% D% D% D% D% D% D% D% D% D% D% D% DH= H H9tH Ht H= H5 H)HHH?HHtHU HtfD=I u+UH=2 Ht H= 9d! ]wUSHHHGxH7HPHHWxHHcHHH)HHHcHH)H~HcH4׋F % =uHH55`H+H[]fD1H!Df.AWIAVAUATUS1H(H HT$Hc6 t$L$HL$HtHHcHRHHE$HkL@ETL$L$@A $I/LLIt$LD$LAD$IHpI1LH53 LhIEIGxHIGxI;?HI+WHHHx8<IW H)HtH@XHLH5 HEI/aIH1LiF % =HHh IA$HFHt2HHHHH= HP1*IHFHHHHJHt&HPHL8IHFHH)HLM/IGXI9GPuLHHkL@McEtRDL$Hh@EMcH HLHHt$HLLAHkEHH@HH@@HHx L$t$HLŅVA$t*HD$Hc͋t$H=v HH@HHE1H5LuHD$HH@HEH([]A\A]A^A_L3H'HpXLfHppH=} 1^fLh~1LIH@HHHxHFH)HX1LpIH@HHHHHFHH1LHL$|{7H4$ugBOݨ L ұߏ> 9k`N^!tDAr;rG+Hlmun6T>&aPIdihtF&@p\Æ;0ygz]/uA0 k4²W_ٓ?3*B.yV̲^ Z]dp0]!t NRÔpFw6@ q+sQymp'?Vskj0_.3?,,ƦT3 Ei/AG:('E{=oAMzTGfr4|l!6CG͡۱gYZ.shstrtab.note.gnu.build-id.gnu.hash.dynsym.dynstr.gnu.version.gnu.version_r.rela.dyn.rela.plt.init.plt.sec.text.fini.rodata.eh_frame_hdr.eh_frame.note.gnu.property.init_array.fini_array.data.rel.ro.dynamic.got.data.bss.gnu.build.attributes.gnu_debuglink.gnu_debugdata $o((4( ``0hh8oH H VEo T ^Bh h Hh c @n0w@@ } 2%!!Lh!h!(#(# , ,, ,, ,, ,. .P0 00 00`0 2$2t6(PK!"f8]8] Simple.pmnu[package Filter::Simple; use Text::Balanced ':ALL'; use vars qw{ $VERSION @EXPORT }; $VERSION = '0.94'; use Filter::Util::Call; use Carp; @EXPORT = qw( FILTER FILTER_ONLY ); sub import { if (@_>1) { shift; goto &FILTER } else { *{caller()."::$_"} = \&$_ foreach @EXPORT } } sub fail { croak "FILTER_ONLY: ", @_; } my $exql = sub { my @bits = extract_quotelike $_[0], qr//; return unless $bits[0]; return \@bits; }; my $ncws = qr/\s+/; my $comment = qr/(?()-]|\^[A-Z]?)\} | (?:\$#?|[*\@\%]|\\&)\$*\s* (?: \{\s*(?:\^(?=[A-Z_]))?(?:\w|::|'\w)*\s*\} | (?:\^(?=[A-Z_]))?(?:\w|::|'\w)* | (?=\{) # ${ block } ) ) | \$\s*(?!::)(?:\d+|[][&`'#+*./|,";%=~:?!\@<>()-]|\^[A-Z]?) }x; my %extractor_for = ( quotelike => [ $ws, $variable, $id, { MATCH => \&extract_quotelike } ], regex => [ $ws, $pod_or_DATA, $id, $exql ], string => [ $ws, $pod_or_DATA, $id, $exql ], code => [ $ws, { DONT_MATCH => $pod_or_DATA }, $variable, $id, { DONT_MATCH => \&extract_quotelike } ], code_no_comments => [ { DONT_MATCH => $comment }, $ncws, { DONT_MATCH => $pod_or_DATA }, $variable, $id, { DONT_MATCH => \&extract_quotelike } ], executable => [ $ws, { DONT_MATCH => $pod_or_DATA } ], executable_no_comments => [ { DONT_MATCH => $comment }, $ncws, { DONT_MATCH => $pod_or_DATA } ], all => [ { MATCH => qr/(?s:.*)/ } ], ); my %selector_for = ( all => sub { my ($t)=@_; sub{ $_=$$_; $t->(@_); $_} }, executable=> sub { my ($t)=@_; sub{ref() ? $_=$$_ : $t->(@_); $_} }, quotelike => sub { my ($t)=@_; sub{ref() && do{$_=$$_; $t->(@_)}; $_} }, regex => sub { my ($t)=@_; sub{ref() or return $_; my ($ql,undef,$pre,$op,$ld,$pat) = @$_; return $_->[0] unless $op =~ /^(qr|m|s)/ || !$op && ($ld eq '/' || $ld eq '?'); $_ = $pat; $t->(@_); $ql =~ s/^(\s*\Q$op\E\s*\Q$ld\E)\Q$pat\E/$1$_/; return "$pre$ql"; }; }, string => sub { my ($t)=@_; sub{ref() or return $_; local *args = \@_; my ($pre,$op,$ld1,$str1,$rd1,$ld2,$str2,$rd2,$flg) = @{$_}[2..10]; return $_->[0] if $op =~ /^(qr|m)/ || !$op && ($ld1 eq '/' || $ld1 eq '?'); if (!$op || $op eq 'tr' || $op eq 'y') { local *_ = \$str1; $t->(@args); } if ($op =~ /^(tr|y|s)/) { local *_ = \$str2; $t->(@args); } my $result = "$pre$op$ld1$str1$rd1"; $result .= $ld2 if $ld1 =~ m/[[({<]/; #])}> $result .= "$str2$rd2$flg"; return $result; }; }, ); sub gen_std_filter_for { my ($type, $transform) = @_; return sub { my $instr; local @components; for (extract_multiple($_,$extractor_for{$type})) { if (ref()) { push @components, $_; $instr=0 } elsif ($instr) { $components[-1] .= $_ } else { push @components, $_; $instr=1 } } if ($type =~ /^code/) { my $count = 0; local $placeholder = qr/\Q$;\E(.{4})\Q$;\E/s; my $extractor = qr/\Q$;\E(.{4})\Q$;\E/s; $_ = join "", map { ref $_ ? $;.pack('N',$count++).$; : $_ } @components; @components = grep { ref $_ } @components; $transform->(@_); s/$extractor/${$components[unpack('N',$1)]}/g; } else { my $selector = $selector_for{$type}->($transform); $_ = join "", map $selector->(@_), @components; } } }; sub FILTER (&;$) { my $caller = caller; my ($filter, $terminator) = @_; no warnings 'redefine'; *{"${caller}::import"} = gen_filter_import($caller,$filter,$terminator); *{"${caller}::unimport"} = gen_filter_unimport($caller); } sub FILTER_ONLY { my $caller = caller; while (@_ > 1) { my ($what, $how) = splice(@_, 0, 2); fail "Unknown selector: $what" unless exists $extractor_for{$what}; fail "Filter for $what is not a subroutine reference" unless ref $how eq 'CODE'; push @transforms, gen_std_filter_for($what,$how); } my $terminator = shift; my $multitransform = sub { foreach my $transform ( @transforms ) { $transform->(@_); } }; no warnings 'redefine'; *{"${caller}::import"} = gen_filter_import($caller,$multitransform,$terminator); *{"${caller}::unimport"} = gen_filter_unimport($caller); } my $ows = qr/(?:[ \t]+|#[^\n]*)*/; sub gen_filter_import { my ($class, $filter, $terminator) = @_; my %terminator; my $prev_import = *{$class."::import"}{CODE}; return sub { my ($imported_class, @args) = @_; my $def_terminator = qr/^(?:\s*no\s+$imported_class\s*;$ows|__(?:END|DATA)__)\r?$/; if (!defined $terminator) { $terminator{terminator} = $def_terminator; } elsif (!ref $terminator || ref $terminator eq 'Regexp') { $terminator{terminator} = $terminator; } elsif (ref $terminator ne 'HASH') { croak "Terminator must be specified as scalar or hash ref" } elsif (!exists $terminator->{terminator}) { $terminator{terminator} = $def_terminator; } filter_add( sub { my ($status, $lastline); my $count = 0; my $data = ""; while ($status = filter_read()) { return $status if $status < 0; if ($terminator{terminator} && m/$terminator{terminator}/) { $lastline = $_; $count++; last; } $data .= $_; $count++; $_ = ""; } return $count if not $count; $_ = $data; $filter->($imported_class, @args) unless $status < 0; if (defined $lastline) { if (defined $terminator{becomes}) { $_ .= $terminator{becomes}; } elsif ($lastline =~ $def_terminator) { $_ .= $lastline; } } return $count; } ); if ($prev_import) { goto &$prev_import; } elsif ($class->isa('Exporter')) { $class->export_to_level(1,@_); } } } sub gen_filter_unimport { my ($class) = @_; return sub { filter_del(); goto &$prev_unimport if $prev_unimport; } } 1; __END__ =head1 NAME Filter::Simple - Simplified source filtering =head1 SYNOPSIS # in MyFilter.pm: package MyFilter; use Filter::Simple; FILTER { ... }; # or just: # # use Filter::Simple sub { ... }; # in user's code: use MyFilter; # this code is filtered no MyFilter; # this code is not =head1 DESCRIPTION =head2 The Problem Source filtering is an immensely powerful feature of recent versions of Perl. It allows one to extend the language itself (e.g. the Switch module), to simplify the language (e.g. Language::Pythonesque), or to completely recast the language (e.g. Lingua::Romana::Perligata). Effectively, it allows one to use the full power of Perl as its own, recursively applied, macro language. The excellent Filter::Util::Call module (by Paul Marquess) provides a usable Perl interface to source filtering, but it is often too powerful and not nearly as simple as it could be. To use the module it is necessary to do the following: =over 4 =item 1. Download, build, and install the Filter::Util::Call module. (If you have Perl 5.7.1 or later, this is already done for you.) =item 2. Set up a module that does a C. =item 3. Within that module, create an C subroutine. =item 4. Within the C subroutine do a call to C, passing it either a subroutine reference. =item 5. Within the subroutine reference, call C or C to "prime" $_ with source code data from the source file that will C your module. Check the status value returned to see if any source code was actually read in. =item 6. Process the contents of $_ to change the source code in the desired manner. =item 7. Return the status value. =item 8. If the act of unimporting your module (via a C) should cause source code filtering to cease, create an C subroutine, and have it call C. Make sure that the call to C or C in step 5 will not accidentally read past the C. Effectively this limits source code filters to line-by-line operation, unless the C subroutine does some fancy pre-pre-parsing of the source code it's filtering. =back For example, here is a minimal source code filter in a module named BANG.pm. It simply converts every occurrence of the sequence C to the sequence C in any piece of code following a C statement (until the next C statement, if any): package BANG; use Filter::Util::Call ; sub import { filter_add( sub { my $caller = caller; my ($status, $no_seen, $data); while ($status = filter_read()) { if (/^\s*no\s+$caller\s*;\s*?$/) { $no_seen=1; last; } $data .= $_; $_ = ""; } $_ = $data; s/BANG\s+BANG/die 'BANG' if \$BANG/g unless $status < 0; $_ .= "no $class;\n" if $no_seen; return 1; }) } sub unimport { filter_del(); } 1 ; This level of sophistication puts filtering out of the reach of many programmers. =head2 A Solution The Filter::Simple module provides a simplified interface to Filter::Util::Call; one that is sufficient for most common cases. Instead of the above process, with Filter::Simple the task of setting up a source code filter is reduced to: =over 4 =item 1. Download and install the Filter::Simple module. (If you have Perl 5.7.1 or later, this is already done for you.) =item 2. Set up a module that does a C and then calls C. =item 3. Within the anonymous subroutine or block that is passed to C, process the contents of $_ to change the source code in the desired manner. =back In other words, the previous example, would become: package BANG; use Filter::Simple; FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; }; 1 ; Note that the source code is passed as a single string, so any regex that uses C<^> or C<$> to detect line boundaries will need the C flag. =head2 Disabling or changing behaviour By default, the installed filter only filters up to a line consisting of one of the three standard source "terminators": no ModuleName; # optional comment or: __END__ or: __DATA__ but this can be altered by passing a second argument to C or C (just remember: there's I comma after the initial block when you use C). That second argument may be either a C'd regular expression (which is then used to match the terminator line), or a defined false value (which indicates that no terminator line should be looked for), or a reference to a hash (in which case the terminator is the value associated with the key C<'terminator'>. For example, to cause the previous filter to filter only up to a line of the form: GNAB esu; you would write: package BANG; use Filter::Simple; FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; } qr/^\s*GNAB\s+esu\s*;\s*?$/; or: FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; } { terminator => qr/^\s*GNAB\s+esu\s*;\s*?$/ }; and to prevent the filter's being turned off in any way: package BANG; use Filter::Simple; FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; } ""; # or: 0 or: FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; } { terminator => "" }; B be contained on a single source line.> =head2 All-in-one interface Separating the loading of Filter::Simple: use Filter::Simple; from the setting up of the filtering: FILTER { ... }; is useful because it allows other code (typically parser support code or caching variables) to be defined before the filter is invoked. However, there is often no need for such a separation. In those cases, it is easier to just append the filtering subroutine and any terminator specification directly to the C statement that loads Filter::Simple, like so: use Filter::Simple sub { s/BANG\s+BANG/die 'BANG' if \$BANG/g; }; This is exactly the same as: use Filter::Simple; BEGIN { Filter::Simple::FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g; }; } except that the C subroutine is not exported by Filter::Simple. =head2 Filtering only specific components of source code One of the problems with a filter like: use Filter::Simple; FILTER { s/BANG\s+BANG/die 'BANG' if \$BANG/g }; is that it indiscriminately applies the specified transformation to the entire text of your source program. So something like: warn 'BANG BANG, YOU'RE DEAD'; BANG BANG; will become: warn 'die 'BANG' if $BANG, YOU'RE DEAD'; die 'BANG' if $BANG; It is very common when filtering source to only want to apply the filter to the non-character-string parts of the code, or alternatively to I the character strings. Filter::Simple supports this type of filtering by automatically exporting the C subroutine. C takes a sequence of specifiers that install separate (and possibly multiple) filters that act on only parts of the source code. For example: use Filter::Simple; FILTER_ONLY code => sub { s/BANG\s+BANG/die 'BANG' if \$BANG/g }, quotelike => sub { s/BANG\s+BANG/CHITTY CHITTY/g }; The C<"code"> subroutine will only be used to filter parts of the source code that are not quotelikes, POD, or C<__DATA__>. The C subroutine only filters Perl quotelikes (including here documents). The full list of alternatives is: =over =item C<"code"> Filters only those sections of the source code that are not quotelikes, POD, or C<__DATA__>. =item C<"code_no_comments"> Filters only those sections of the source code that are not quotelikes, POD, comments, or C<__DATA__>. =item C<"executable"> Filters only those sections of the source code that are not POD or C<__DATA__>. =item C<"executable_no_comments"> Filters only those sections of the source code that are not POD, comments, or C<__DATA__>. =item C<"quotelike"> Filters only Perl quotelikes (as interpreted by C<&Text::Balanced::extract_quotelike>). =item C<"string"> Filters only the string literal parts of a Perl quotelike (i.e. the contents of a string literal, either half of a C, the second half of an C). =item C<"regex"> Filters only the pattern literal parts of a Perl quotelike (i.e. the contents of a C or an C, the first half of an C). =item C<"all"> Filters everything. Identical in effect to C. =back Except for C<< FILTER_ONLY code => sub {...} >>, each of the component filters is called repeatedly, once for each component found in the source code. Note that you can also apply two or more of the same type of filter in a single C. For example, here's a simple macro-preprocessor that is only applied within regexes, with a final debugging pass that prints the resulting source code: use Regexp::Common; FILTER_ONLY regex => sub { s/!\[/[^/g }, regex => sub { s/%d/$RE{num}{int}/g }, regex => sub { s/%f/$RE{num}{real}/g }, all => sub { print if $::DEBUG }; =head2 Filtering only the code parts of source code Most source code ceases to be grammatically correct when it is broken up into the pieces between string literals and regexes. So the C<'code'> and C<'code_no_comments'> component filter behave slightly differently from the other partial filters described in the previous section. Rather than calling the specified processor on each individual piece of code (i.e. on the bits between quotelikes), the C<'code...'> partial filters operate on the entire source code, but with the quotelike bits (and, in the case of C<'code_no_comments'>, the comments) "blanked out". That is, a C<'code...'> filter I each quoted string, quotelike, regex, POD, and __DATA__ section with a placeholder. The delimiters of this placeholder are the contents of the C<$;> variable at the time the filter is applied (normally C<"\034">). The remaining four bytes are a unique identifier for the component being replaced. This approach makes it comparatively easy to write code preprocessors without worrying about the form or contents of strings, regexes, etc. For convenience, during a C<'code...'> filtering operation, Filter::Simple provides a package variable (C<$Filter::Simple::placeholder>) that contains a pre-compiled regex that matches any placeholder...and captures the identifier within the placeholder. Placeholders can be moved and re-ordered within the source code as needed. In addition, a second package variable (C<@Filter::Simple::components>) contains a list of the various pieces of C<$_>, as they were originally split up to allow placeholders to be inserted. Once the filtering has been applied, the original strings, regexes, POD, etc. are re-inserted into the code, by replacing each placeholder with the corresponding original component (from C<@components>). Note that this means that the C<@components> variable must be treated with extreme care within the filter. The C<@components> array stores the "back- translations" of each placeholder inserted into C<$_>, as well as the interstitial source code between placeholders. If the placeholder backtranslations are altered in C<@components>, they will be similarly changed when the placeholders are removed from C<$_> after the filter is complete. For example, the following filter detects concatenated pairs of strings/quotelikes and reverses the order in which they are concatenated: package DemoRevCat; use Filter::Simple; FILTER_ONLY code => sub { my $ph = $Filter::Simple::placeholder; s{ ($ph) \s* [.] \s* ($ph) }{ $2.$1 }gx }; Thus, the following code: use DemoRevCat; my $str = "abc" . q(def); print "$str\n"; would become: my $str = q(def)."abc"; print "$str\n"; and hence print: defabc =head2 Using Filter::Simple with an explicit C subroutine Filter::Simple generates a special C subroutine for your module (see L<"How it works">) which would normally replace any C subroutine you might have explicitly declared. However, Filter::Simple is smart enough to notice your existing C and Do The Right Thing with it. That is, if you explicitly define an C subroutine in a package that's using Filter::Simple, that C subroutine will still be invoked immediately after any filter you install. The only thing you have to remember is that the C subroutine I be declared I the filter is installed. If you use C to install the filter: package Filter::TurnItUpTo11; use Filter::Simple; FILTER { s/(\w+)/\U$1/ }; that will almost never be a problem, but if you install a filtering subroutine by passing it directly to the C statement: package Filter::TurnItUpTo11; use Filter::Simple sub{ s/(\w+)/\U$1/ }; then you must make sure that your C subroutine appears before that C statement. =head2 Using Filter::Simple and Exporter together Likewise, Filter::Simple is also smart enough to Do The Right Thing if you use Exporter: package Switch; use base Exporter; use Filter::Simple; @EXPORT = qw(switch case); @EXPORT_OK = qw(given when); FILTER { $_ = magic_Perl_filter($_) } Immediately after the filter has been applied to the source, Filter::Simple will pass control to Exporter, so it can do its magic too. Of course, here too, Filter::Simple has to know you're using Exporter before it applies the filter. That's almost never a problem, but if you're nervous about it, you can guarantee that things will work correctly by ensuring that your C always precedes your C. =head2 How it works The Filter::Simple module exports into the package that calls C (or Cs it directly) -- such as package "BANG" in the above example -- two automagically constructed subroutines -- C and C -- which take care of all the nasty details. In addition, the generated C subroutine passes its own argument list to the filtering subroutine, so the BANG.pm filter could easily be made parametric: package BANG; use Filter::Simple; FILTER { my ($die_msg, $var_name) = @_; s/BANG\s+BANG/die '$die_msg' if \${$var_name}/g; }; # and in some user code: use BANG "BOOM", "BAM"; # "BANG BANG" becomes: die 'BOOM' if $BAM The specified filtering subroutine is called every time a C is encountered, and passed all the source code following that call, up to either the next C (or whatever terminator you've set) or the end of the source file, whichever occurs first. By default, any C call must appear by itself on a separate line, or it is ignored. =head1 AUTHOR Damian Conway =head1 CONTACT Filter::Simple is now maintained by the Perl5-Porters. Please submit bug via the C tool that comes with your perl. For usage instructions, read C or possibly C. For mostly anything else, please contact Eperl5-porters@perl.orgE. Maintainer of the CPAN release is Steffen Mueller Esmueller@cpan.orgE. Contact him with technical difficulties with respect to the packaging of the CPAN module. Praise of the module, flowers, and presents still go to the author, Damian Conway Edamian@conway.orgE. =head1 COPYRIGHT AND LICENSE Copyright (c) 2000-2014, Damian Conway. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself. PK!input%3d-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#input= is_singleton: false name: input= params: (filter) visibility: public PK!ܼ each-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: l comment: full_name: Shell::Filter#each is_singleton: false name: each params: (rs = nil) {|l| ...} visibility: public PK!ө to_a-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#to_a is_singleton: false name: to_a params: () visibility: public PK!qa %7c-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#| is_singleton: false name: "|" params: (filter) visibility: public PK!5m6Ɵcdesc-Filter.yamlnu[--- !ruby/object:RI::ClassDescription attributes: - !ruby/object:RI::Attribute comment: name: input rw: R class_methods: - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: Filter A method to require - !ruby/struct:SM::Flow::VERB body: " each()\n" constants: [] full_name: Shell::Filter includes: - !ruby/object:RI::IncludedModule name: Enumerable instance_methods: - !ruby/object:RI::MethodSummary name: + - !ruby/object:RI::MethodSummary name: < - !ruby/object:RI::MethodSummary name: ">" - !ruby/object:RI::MethodSummary name: ">>" - !ruby/object:RI::MethodSummary name: each - !ruby/object:RI::MethodSummary name: input= - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: to_a - !ruby/object:RI::MethodSummary name: to_s - !ruby/object:RI::MethodSummary name: "|" name: Filter superclass: Object PK!!Z~ %3c-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#< is_singleton: false name: < params: (src) visibility: public PK!3~=ǯinspect-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#inspect is_singleton: false name: inspect params: () visibility: public PK!< new-c.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter::new is_singleton: true name: new params: (sh) visibility: public PK!XC %3e%3e-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#>> is_singleton: false name: ">>" params: (to) visibility: public PK!ީ %2b-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#+ is_singleton: false name: + params: (filter) visibility: public PK! \ to_s-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#to_s is_singleton: false name: to_s params: () visibility: public PK!~ %3e-i.yamlnu[--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: full_name: Shell::Filter#> is_singleton: false name: ">" params: (to) visibility: public PK!izqqsh.pmnu[PK!D0η decrypt.pmnu[PK!lcpp.pmnu[PK!# WUtil/Exec.pmnu[PK!U66 OUtil/Call.pmnu[PK!RWWNVUtil/perlfilter.podnu[PK!د[exec.pmnu[PK!Itee.pmnu[PK!d,]..decrypt/decrypt.sonuȯPK!s.. tee/tee.sonuȯPK!3h>>Util/Exec/Exec.sonuȯPK!>>RUtil/Call/Call.sonuȯPK!"f8]8] Simple.pmnu[PK!+input%3d-i.yamlnu[PK!ܼ each-i.yamlnu[PK!ө to_a-i.yamlnu[PK!qa %7c-i.yamlnu[PK!5m6Ɵcdesc-Filter.yamlnu[PK!!Z~ %3c-i.yamlnu[PK!3~=ǯinspect-i.yamlnu[PK!< new-c.yamlnu[PK!XC m%3e%3e-i.yamlnu[PK!ީ S%2b-i.yamlnu[PK! \ 6to_s-i.yamlnu[PK!~ %3e-i.yamlnu[PKb