in reply to Re: Reference Question
in thread Reference Question

Perfect! Thanks a ton. For my own edification, do the square brackets actually copy the array *and* make a reference to it in one fell swoop?

Replies are listed 'Best First'.
Re^3: Reference Question
by GrandFather (Saint) on Aug 03, 2006 at 21:54 UTC

    The [] makes an anonymous copy of the array and in effect returns an reference to it. {} can be used in similar fashion to create an anonymous copy of a hash.


    DWIM is Perl's answer to Gödel