perl -mstrict -we 'for(`ls`) { chomp;print `grep foo $_`; }'By which you're basically saying the following non-Perl statement::
Right we already covered that a day or so ago, the shell is not the way to go:
perl -mstrict -MFile::Slurp -we 'for(read_dir(".")) { print "Process $_ here\n"; }
All perl, answers the OP's question :)
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>