Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Why do I get uninitialized value in substitution (s///) in my array?

by Popcorn Dave (Abbot)
on Aug 10, 2009 at 21:47 UTC ( [id://787419]=note: print w/replies, xml ) Need Help??


in reply to Why do I get uninitialized value in substitution (s///) in my array?

One small thing that could come back to bite you in the butt down the road is using $a for a variable since $a and $b are special variables.

I'd change it to something a bit more meaningful so not only that you'll remember what it does when you look at the code 6 months from now but you won't get messed up if you use the <=> operator in the program down the road.


To disagree, one doesn't have to be disagreeable - Barry Goldwater

  • Comment on Re: Why do I get uninitialized value in substitution (s///) in my array?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (1)
As of 2024-04-24 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found