4 use Filter::Util::Exec ;
7 use vars qw($VERSION) ;
13 my($self, @args) = @_ ;
15 croak("Usage: use Filter::exec 'command'")
18 Filter::Util::Exec::filter_add($self, @args) ;
26 Filter::exec - exec source filter
30 use Filter::exec qw(command parameters) ;
34 This filter pipes the current source file through the program which
35 corresponds to the C<command> parameter.
37 As with all source filters its scope is limited to the current source
38 file only. Every file you want to be processed by the filter must have a
40 use Filter::exec qw(command ) ;
44 Here is an example script which uses the filter:
46 use Filter::exec qw(tr XYZ PQR) ;
48 print "XYZ a = $a\n" ;
50 And here is what it will output:
56 You should be I<very> careful when using this filter. Because of the
57 way the filter is implemented it is possible to end up with deadlock.
59 Be especially careful when stacking multiple instances of the filter in