Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: $_ not set in while <>

by Marshall (Canon)
on Jun 06, 2021 at 02:59 UTC ( #11133574=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line;
    while ( (print "list of letters: "),$line=<>, $line !~ /\s*quit|exit|q
    +\s*$/i)
    {..do something with this line...}
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2021-10-23 17:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (88 votes). Check out past polls.

    Notices?