On 5 December 2001 14:29, BooK [mailto:philippe.bruhat@free.fr] wrote: > En réponse à Piers Cawley <pdcawley@bofh.org.uk>: > > > > 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) > With fixes for Win2k's command shell, it does indeed work... perl -e "*{''} = sub {13}; print &{''}" The real question is of course, is this any use apart from obfustication (clearly not for golf with such a long name)? Richard Cox Senior Software Developer Dell Technology Online All opinions and statements mine and do not in any way (unless expressly stated) imply anything at all on behalf of my employerThread Previous | Thread Next