[Perl] split file into odd and even lines

Mikhael Goikhman migo at homemail.com
Sun Oct 6 06:22:34 PDT 2002


On 06 Oct 2002 16:06:31 +0300, Shlomo Yona wrote:
> 
> This is all great - but the result of <> also gets into $_
> or at least should be implicitly.
> 
> I wonder why <> is not assigned to the $_ which get printed by the -p

The result of <> is assigned to $_ in one very special case, inside
while (<>), and nowhere else.

Regards,
Mikhael.



More information about the Perl mailing list