http://www.perlmonks.org?node_id=787419


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