in reply to (Guildenstern) REx2: Should I use $ and $# ?
in thread Should I use $ and $# ?
As for $#, that has to do with formatting print statements... not array boundaries, unless of course, you meant $#arrayName which is the index of the last element of the specified array and certainly not deprecated. In fact, not only does it give you the last index, but you can use it as an lvalue to change the size of an array.
(And yes, the use of $# by itself to alter the formatting of print statements is highly deprecated and should not be used.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(Guildenstern) REx4: Should I use $ and $# ?
by Guildenstern (Deacon) on Aug 11, 2000 at 22:32 UTC |