[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.
>
>  >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.

    Thanks!  I was going through the References section in the 
"Advance Perl Programming."  I suppose I was approaching it from a 
'C' perspective and expecting coercion or type casting to work.

    After I read the stuff on the {} evaluation, it made sense.

Thanks!

/*-------------------------------------------------------------
Andrew O. Mellinger                      Direct: (503) 265-1220
Critical Path Software, Inc.               Main: (503) 222-2922
General Specialist                          Fax: (503) 222-3020
mailto:andrew@criticalpath.com      http://www.criticalpath.com
-------------------------------------------------------------*/

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