Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I've never used continue like the above, and not able to understand what the above means ? Please explain what does the above code means, and is there any other difference between -n and -p.LINE: while (<>) { ... # your program goes here } continue { print or die "-p destination: $!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: what is -p option in perl does ? Confused with man perlrun.
by moritz (Cardinal) on Aug 24, 2010 at 08:39 UTC | |
|
Re: what is -p option in perl does ? Confused with man perlrun.
by Corion (Patriarch) on Aug 24, 2010 at 08:41 UTC |