Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Bash for loop variable pass equivalent in perlby ZWcarp (Beadle) |
on Aug 10, 2012 at 16:32 UTC ( [id://986769]=perlquestion: print w/replies, xml ) | Need Help?? |
ZWcarp has asked for the wisdom of the Perl Monks concerning the following question: Is there a way to replicate something like bash's for i in `cat Overlap.txt`; do echo "$i";done in perl ...I tried ... perl -lane 'print $_ for `cat Overlap.txt`' but this did not work. Any suggestions on how to do that in perl command line ?
Back to
Seekers of Perl Wisdom
|
|