in reply to Re: Where automatic variable $_ doesn't work?
in thread Where automatic variable $_ doesn't work?
However:
print $fh while <>;
is both shorter and clearer.
Update: Argh! that falls foul of the OP's complaint. It needs to be:
print $fh $_ while <>;
to work as intended.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Where automatic variable $_ doesn't work?
by choroba (Cardinal) on Jul 04, 2016 at 21:12 UTC |