in reply to Re: which use for any Perl elements?
in thread which use for any Perl elements?

Something like *foo = sub { print "foo\n" };

Sorry, I have never understood typeglobs either: why would this be preferable to my $foosub = sub { print "foo\n" };?

Replies are listed 'Best First'.
Re^3: which use for any Perl elements?
by TedYoung (Deacon) on Dec 04, 2004 at 03:05 UTC
    $a = sub { ... }; # called: $a->(); *b = sub { ... }; # called: b();

    Ted Young

    ($$<<$$=>$$<=>$$<=$$>>$$) always returns 1. :-)