1Filter::sh(3) User Contributed Perl Documentation Filter::sh(3)
2
3
4
6 Filter::sh - sh source filter
7
9 use Filter::sh 'command' ;
10
12 This filter pipes the current source file through the program which
13 corresponds to the "command" parameter using the Bourne shell.
14
15 As with all source filters its scope is limited to the current source
16 file only. Every file you want to be processed by the filter must have
17 a
18
19 use Filter::sh 'command' ;
20
21 near the top.
22
23 Here is an example script which uses the filter:
24
25 use Filter::sh 'tr XYZ PQR' ;
26 $a = 1 ;
27 print "XYZ a = $a\n" ;
28
29 And here is what it will output:
30
31 PQR = 1
32
34 You should be very careful when using this filter. Because of the way
35 the filter is implemented it is possible to end up with deadlock.
36
37 Be especially careful when stacking multiple instances of the filter in
38 a single source file.
39
41 Paul Marquess
42
44 11th December 1995.
45
46
47
48perl v5.34.0 2021-07-22 Filter::sh(3)