in reply to Hard Reference

Your first example doesn't dereference $stat_ref. Your second example dereferences it twice. You have two options:
$first = $stat_ref->[0][0]; # or $first = $$stat_ref[0][0];
I think this is documented in perlreftut. It's a hard concept to grok the first time around. I stumbled over it for a couple of weeks, myself.

Replies are listed 'Best First'.
Re: Hard Reference
by Dominus (Parson) on May 19, 2001 at 10:01 UTC