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

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
Keith C. Ivey
December 5, 2001 05:43
Re: The Santa Claus Golf Apocalypse
Message ID:
Bernie Cosell <> 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 <>
Washington, DC

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