develooper Front page | perl.fwp | Postings from December 2001

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
December 5, 2001 06:30
Re: The Santa Claus Golf Apocalypse
Message ID:
En réponse à Piers Cawley <>:

> "Bernie Cosell" <> writes:
> > Three questions:
> > 1) is semicolon the ONLY puncuation mark that has this odd
> > special-dispensation?
> Hell no:
> perl -e '*{" "} = sub {42}; print &{" "}'
> I can't pretend that I *like* this, but it has a certain cute insanity
> to it.

Since the symbol table is a hash, I'd say that the empty sub exists, too.

perl -e '*{""} = sub {13}; print &{""}'

I may be wrong, since this is not tested. I do not have Perl here.
(I feel like I read that in Effective Perl Programming, but can't find it

 Philippe BRUHAT - BooK

 When you run from your problem, you make it that much harder for good
 fortune to catch you, as well.     (Moral from Groo The Wanderer #14 (Epic))

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About