Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Use of uninitialized value in pattern match (m//)

by AnomalousMonk (Abbot)
on May 23, 2012 at 22:37 UTC ( #972119=note: print w/ replies, xml ) Need Help??


in reply to Use of uninitialized value in pattern match (m//)

The regex  /^\s*$/ matches by default against the  $_ scalar, which is nowhere initialized in the code you show.
Perhaps  $str =~ /^\*$/ was what you meant?


Comment on Re: Use of uninitialized value in pattern match (m//)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (8)
As of 2015-07-02 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (27 votes), past polls