Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

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

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    list of letters: quit
    
    C:\Users\xxx\Documents\PerlProjects\Monks>
    
  2. or download this
    while ( (print "list of letters: ") and defined ($line=<>) and $line !
    +~ /\s*quit|exit|q
    +\s*$/i)
    
  3. or download this
    use strict;
    use warnings;
    ...
    list of letters: adf
    list of letters: 123
    list of letters: q
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2021-09-24 04:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?