Re: Reference syntax...

2004-10-15 Thread Mark Goland
- Original Message - From: "John W. Krahn" <[EMAIL PROTECTED]> To: "Wiggins d Anconia" <[EMAIL PROTECTED]>; "Perl Beginners" <[EMAIL PROTECTED]> Sent: Friday, October 15, 2004 11:30 PM Subject: Re: Reference syntax... > Wiggins d A

Re: Reference syntax...

2004-10-15 Thread John W. Krahn
Wiggins d Anconia wrote: Usually when you need this is when you have multiple depths of references and the syntax becomes ambiguous to the interpreter. Something like, @{$hashref->{$scalar}} In this case without the {} the interpreter can't tell if you mean, Yes, the interpreter can tell because of

Re: Reference syntax...

2004-10-15 Thread Wiggins d Anconia
> I'm reading Perl ORM book right now, and I'd just like to know what is > generally more accepted... > Both are accepted since they work :-)... > This format: > > @$array > I generally stick with this until I need the below option. It is less cluttered and shorter to type (though the first i

Reference syntax...

2004-10-15 Thread Steve Bertrand
I'm reading Perl ORM book right now, and I'd just like to know what is generally more accepted... This format: @$array or this: @{$array} Tks, Steve -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: nested anonymous reference syntax

2003-09-22 Thread david
[EMAIL PROTECTED] wrote: > Hello, > > I'm having trouble grasping the syntax to perform foreach operation on an > anonymous array within an anonymous hash reference. > > my $hashRef = { bah => "humbug", >list => [ "lions", "tigers", "bears", "oh_my" ], >woo => "hoo" }; here you have a h

Re: nested anonymous reference syntax

2003-09-20 Thread Rob Dixon
<[EMAIL PROTECTED]> wrote: > > I'm having trouble grasping the syntax to perform foreach operation on an > anonymous array within an anonymous hash reference. > > my $hashRef = { bah => "humbug", >list => [ "lions", "tigers", "bears", "oh_my" ], >woo => "hoo" }; > > How can I run a foreach

nested anonymous reference syntax

2003-09-20 Thread ccarver
Hello, I'm having trouble grasping the syntax to perform foreach operation on an anonymous array within an anonymous hash reference. my $hashRef = { bah => "humbug", list => [ "lions", "tigers", "bears", "oh_my" ], woo => "hoo" }; How can I run a foreach on every item in that anonymous ar