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

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
BooK
Date:
December 5, 2001 06:30
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
1007562539.3c0e2f2b3ee79@imp3-1.free.fr
En réponse à Piers Cawley <pdcawley@bofh.org.uk>:

> "Bernie Cosell" <bernie@fantasyfarm.com> 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
there)

-- 
 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About