in reply to Printing the length of an array ?

print scalar @my_array; (see scalar).

Replies are listed 'Best First'.
Re^2: Printing the length of an array ?
by jflevi (Beadle) on Mar 31, 2008 at 20:23 UTC
    Thanks kyle !

    Exactly what I wanted, short and sweet..

    Totally forgot about the "scalar" operator (if I ever knew about it)

    Life is tough, it's tougher when you are dumb...

    jfl