in reply to Re^2: array reference madness
in thread array reference madness

"Extra-referencing?!!" I was thinking the \& and the \@ matched, wrt the "type" of the return value. So you've given me something to think about -- I'll try and apply this. Thanks much! ps. the exercise is 5-2. I like the book, it's well structured ;)

Replies are listed 'Best First'.
Re^4: array reference madness
by Anonymous Monk on Mar 15, 2009 at 07:03 UTC
    use O qw' Deparse -p '; print \&reference; # real ref print \&call(1); # ref to return value print \( &call(1) ); # same as above, ref to return print \( call(1) ); # same as above, ref to return __END__ print((\&reference)); print(\(&call(1))); print(\(&call(1))); print(\(call(1))); __DATA__