in reply to UNIX shell scripts + pipes
Also you may want to make your perl scripts executable for clarity's sake.# $@ being the shell's quoted argument list perl program1 $@ | perl program2
Another thing to note is when you're piping into a perl program the output from the source program will be on STDIN e.g
There's also the handy -n switch and many others of whose information you can find in the perlrun manpage.# program1.pl ... print while(<SOMETHING>); # program2.pl (which is reading program1.pl's output) ... while(my $line = <STDIN>) { do_something($line); }
_________
broquaint
|
|---|