while (<>) { print "$.\n"; } continue { close ARGV if eof; # Not eof()! }
In reply to Re: How to reset a variable for each file inside a while( <> ) loop?
by toolic
in thread How to reset a variable for each file inside a while( <> ) loop?
by pat_mc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |