Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( #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
Node Status?
node history
Node Type: note [id://787419]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2014-07-10 17:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls