Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Matching against $_ behaves differently than matching against a named scalar?

by choroba (Cardinal)
on Apr 20, 2020 at 16:36 UTC ( [id://11115836]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $line;
    while ($line = <>) {
        ...
    
  2. or download this
    $ perl -MO=Deparse -e 'while (<>) { /(.)/ }'
    while (defined($_ = readline ARGV)) {
    ...
        };
    }
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found