There must be some better way to force @my_array as a scalar or do I have flashbacks of "C" ???print @my_array; # no good: "print" works in a list context print ($#my_array + 1); # OK only if "$[" set to 0 print (0 + @my_array); # works, but looks ugly
I must be missing something ... actually I'm missing a lot of things :-)
jfl
In reply to Printing the length of an array ? by jflevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |