Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: $_ not set in while <>

by LanX (Sage)
on Jun 06, 2021 at 00:57 UTC ( #11133572=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<>) {
        last if /pattern/;
        ...
    }
    
  2. or download this
    C:\>perl -MO=Deparse -e"while (<>) {}"
    while (defined($_ = readline ARGV)) {
    ...
    -e syntax OK
    
    C:\>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2021-10-22 13:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (85 votes). Check out past polls.

    Notices?