[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Dereferencing question



At 7:46 -0800 2000.11.22, Andrew O. Mellinger wrote:
>Now, I want to push another value onto the embedded array.  I've
>tried all of the following, but none seem to work

You should read perlreftut.  It is very good and should help with your
reference problems.

	http://perldoc.com/m?perlreftut


>push $$hRef{'array'}, "Four";
>push @$hRef{'array'}, "Four";
>push @($hRef{'array'}), "Four";
>push @($$hRef{'array'}), "Four";

push @{$$hRef{'array'}}, "Four";

Really, read perlreftut, it will help a lot, I think.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org