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

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
Keith C. Ivey
Date:
December 5, 2001 05:43
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
3C0DDE1F.11655.20C9CD26@localhost
Bernie Cosell <bernie@fantasyfarm.com> wrote:

> good heavens.. the actual subroutine name is semi-colon??  So
> the name isn't missing and isn't null, but is ';'.  I'm not sure
> that that doesn't make it MORE confusing to me --- Are there
> other punctuation marks that work in that context??

  perl -e"for(0..255){eval'&'.chr().';';print$_,': ',$@}"

You can use any character in that way except for whitespace 
characters, '&', and '{'.  Strangely, &; does give a syntax 
error if it's the very end of the program; you need another
';' or '}' after it.

-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC

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