Perl: the Markov chain saw | |
PerlMonks |
Re: Squeezing $a+1 to be magical like $a++by htoug (Deacon) |
on Oct 10, 2001 at 12:40 UTC ( [id://117955]=note: print w/replies, xml ) | Need Help?? |
I just can't fathom why you want $a=$a+1 to work just like $a++. Why not just use the latter? $a+1 is a very useful idiom to ensure that the value is numeric, while $a++ is magic. Please explain what you want it for.
In Section
Seekers of Perl Wisdom
|
|