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
?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bash for loop variable pass equivalent in perl
by BrowserUk (Patriarch) on Aug 10, 2012 at 16:37 UTC | |
by hbm (Hermit) on Aug 10, 2012 at 16:41 UTC | |
|
Re: Bash for loop variable pass equivalent in perl
by aitap (Curate) on Aug 10, 2012 at 17:05 UTC | |
by aaron_baugher (Curate) on Aug 10, 2012 at 18:06 UTC |