in reply to Re^3: Salesforce Data Parser
in thread Salesforce Data Parser

So is the dereference operator \@array or the use of ->?

Replies are listed 'Best First'.
Re^5: Salesforce Data Parser
by stevieb (Canon) on Aug 06, 2015 at 17:47 UTC

    Take a reference (ie. make $aref a reference of @a):

    my $aref = \@a;

    Extract one element from the array ref by using -> deref operator:

    my $thing = $aref->[0];

    Use the array circumfix operator to dereference the whole array ref at once:

    my @b = @{$aref}; # used in loops, too

    I've proposed part of my reference howto as a tutorial here on PM. It may further help your understanding: Tutorial RFC: Guide to Perl references, Part 1.

      ahhh excellent, thanks for the reference! (no pun intended)