Update: scalar - doh! Interesting, most of the time I use scalar to count things. I forgot that it was originally designed for another purpose.Interesting also because IMHO it is rarely needed to count things, e.g. I see people doing all the time things like:
whereascomplain if scalar @stuff < 2;
is just as fine!complain if @stuff < 2;
In reply to Re: Forcing scalar context
by blazar
in thread Forcing scalar context
by rinceWind
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |