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

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

by AvanTTix (Initiate)
on Oct 07, 2011 at 00:02 UTC ( #930090=note: print w/replies, xml ) Need Help??


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

THANK YOU!

I totally overlooked this part of the syntax, even from the examples I looked up online.

  • Comment on Re^2: Use of uninitialized value in substitution (s///)

Replies are listed 'Best First'.
Re^3: Use of uninitialized value in substitution (s///)
by Anonymous Monk on Oct 07, 2011 at 02:36 UTC

    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://930090]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-12-03 17:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (56 votes). Check out past polls.