Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: foreach loop

by alfie (Pilgrim)
on May 02, 2001 at 19:40 UTC ( #77366=note: print w/replies, xml ) Need Help??


in reply to foreach loop

Because $_ is only available in the scope of the current block. So after the foreach block is finished $_ refers to the read line.

Btw.: You should have expected Suaveaniakobskmerlyboo_radle for using the chop ;-)
--
use signature; signature(" So long\nAlfie");

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://77366]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2022-01-22 18:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (63 votes). Check out past polls.

    Notices?