HaloO,
Ingo Blechschmidt wrote:
[EMAIL PROTECTED]; # Ref to array
\(@array); # List of refs to @array's elements, i.e. same as
map { \$_ } @array;
# Weird (violating the "parens are only for grouping" rule), but
# consistent with Perl 5.
Correct?
I opt for 'no'. () should just group and \((((@array)))) is a sillily
written arrayref. If you want @array to flatten lazily for enreferencing
this should be \([EMAIL PROTECTED]) which works without parens as well: [EMAIL
PROTECTED]
---and is one char shorter than \(@array). And of course there is eager
flattening enreferencing: [EMAIL PROTECTED]
BTW, I like the ubiquitous interpretation of prefix * as infinite arity
marker at call sites as above and in sig definitions.
--
$TSa.greeting := "HaloO"; # mind the echo!