for some reason I always think of $_ as a globalWell, $_ is a global. That's not the reason it's failing though. Perhaps you think that:
assigns to $_? If so, that's your mistake. It doesn't. It reads a line, sees if it's true (not just defined, but true), and then tosses the line.if (<HANDLE>) { ... }
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to •Re: Re: •Re: Re: •Re: Seeking an idiom for localizing $/
by merlyn
in thread Seeking an idiom for localizing $/
by perlcgi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |