in reply to Obfuscated Numbers


One small problem,

It seems perl gets confused when you name a subroutine after a named function, such as 'y'. When running this with perl5.6 i get:

Transliteration replacement not terminated at foo.pl line 1.
If i replace the letter 'y' with 'r' (or some other non-used single letter) it works correctly.

jynx

Replies are listed 'Best First'.
Re: Re: Obfuscated Numbers
by blakem (Monsignor) on Sep 19, 2001 at 01:58 UTC
    and since carthag is new... Here is some documentation on y which happens to be exactly the same as tr. Both are explained further in perlop.

    -Blake

      Thanks for the tip! I didn't know that... Live & learn as they say :)