![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: Closure warning with Perl 5.14?by wind (Priest) |
on May 19, 2011 at 08:44 UTC ( #905635=note: print w/replies, xml ) | Need Help?? |
Remove the if after the declaration of $color. It serves no purpose and is leading to the error:
If you were ever to need initialize a variable conditionally, be sure to use the ternary operator
In Section
Seekers of Perl Wisdom
|
|