Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by Marshall (Canon)
on Jun 06, 2021 at 05:02 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 09:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found