> 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 is more important than
the second).
> or this:
>
> @{$array}
>
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,
(@$hashref) ->{$scalar} or @ ( $hashref->{$scalar} )
The parens are NOT normal syntax, I am using them to show grouping.
> Tks,
>
> Steve
>
Helps?
http://danconia.org
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>