Larry Wall skribis 2004-11-06 13:32 (-0800):
> On Sat, Nov 06, 2004 at 09:17:03PM +0100, Juerd wrote:
> : Which things can either have a name or be anonymous?
> (...)
> Lists (Lazy and Eager)

If lists can be named, then is there still any difference between array
and list, except for automatic (de)referencing?

> : And is there a way to name something that is anonymous? For example,
> : naming an anonymous subroutine can help when debugging. In Perl 5,
> : this is possible with Sub::Name.
> Easy, just one of
>     my $named := anonymous();
>     my @named := anonymous();
>     my %named := anonymous();
>     my &named := anonymous();
>     my ::named := anonymous();

That's a lexical name. Are they used in error messages? (Can they be?)

> Just don't try
>     *named = anonymous();
> or we'll hunt you down and put hot grits down your pants.

I'll try to remember that :)


Juerd

Reply via email to