Hi All.

I'm trying to write a function:
sub MetaField ($&) { ... }

and call it like that:
MetaField("data", { $_->ctx->{length} })
or:
MetaField("data", $_->ctx->{length})

but only this works:
MetaField("data", sub { $_->ctx->{length} })

Why?
Shmuel.
_______________________________________________
Perl mailing list
[email protected]
http://perl.org.il/mailman/listinfo/perl

Reply via email to