in reply to Re^2: one liner - open file and read
in thread one liner - open file and read
causes Perl to assume the following loop around your program, which makes it iterate over filename arguments somewhat like sed -n or awk:So, perl replaces '...' with jwkrahn's '}{print $.'.LINE: while (<>) { ... # your program goes here }
Make sense now?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: one liner - open file and read
by NetWallah (Canon) on Oct 07, 2010 at 19:35 UTC |