SPUG: last index array reference's referent

Yitzchak Scott-Thoennes sthoenna at efn.org
Sun Jan 21 20:40:41 PST 2007

On Sun, Jan 21, 2007 at 03:21:31PM -0800, Michael R. Wolf wrote:
> # Is there a more elegant way to get the equivalent of $#seasons if
> # all you have is a reference?  Somehting that would do to references
> # what $# does to arrays....

$#$aref or $#{ some_aref_expression }.

For all your reference needs, see:

I'm looking for a job: http://perlmonks.org/?node=ysth#looking

More information about the spug-list mailing list