Johan Vromans <[EMAIL PROTECTED]> writes:

> =head1 ABSTRACT
> 
> Perl distinguishes named operators and functions. For Perl6, this
> disctinction can be dropped.

Will this then work?

  sub foo {
     my $func = shift;
     &$func(@_);
  }

  foo(\&print, "foo");
  foo("print", "foo");
  foo(\&CORE::print, "foo");
  foo("CORE::print", "foo");

It would for instance be nice to be able to use \&print directly as a
HTML::Parser callback.

--Gisle

Reply via email to