in reply to
the variable is lost
foreach ($a, $b)
[download]
This makes
$_
an alias to
$a
and
$b
.
while (<$fh>)
[download]
This modifies
$_
, and hence, modifies
$a
and
$b
. Note that the final value will be undefined.
Comment on
Re: the variable is lost
Select
or
Download
Code
In Section
Seekers of Perl Wisdom