Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Use of uninitialized value in substitution (s///)

by Anonymous Monk
on Oct 07, 2011 at 02:36 UTC ( #930095=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Use of uninitialized value in substitution (s///)
in thread Use of uninitialized value in substitution (s///)

Happened to me just a few hours ago :)

That really ought to be a warning, I can't imagine a use case where you want the bitwise negation of the number of substitutions  $foo = ~s/// or matches  $foo = ~m//

every time I've encountered this in the past, its always been a mistake

warnings should issue a specific warning


Comment on Re^3: Use of uninitialized value in substitution (s///)
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (6)
As of 2015-07-02 03:48 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