in reply to Re^3: CPAN shell - passing params for module installation
in thread CPAN shell - passing params for module installation

I'm trying to work out how this is doing what it is doing. I don't understand the $- as I thought that had to do with lines left on a page for formats and writes. Please let me in on the secret.

Cheers,

JohnGG

Replies are listed 'Best First'.
Re^5: CPAN shell - passing params for module installation
by shmem (Chancellor) on Jan 18, 2007 at 10:38 UTC
    Correct. But you can assign to $- e.g. to acommodate the page length for your clay tablet printer 1. $- is 0 by default.

    The rest is easy - ord(R) == ord(E)+13, the other chars are offset -1 to the output (S,E,L -> T,F,M).

    German ESEL is English DONKEY, which is why I made that up in the first place. So the thingy is only acceptable with a smiley appended... ;-)

    --shmem

    1)The code that link points to is from the first edition of Programming Perl (a.k.a Pink Camel)

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
      Right, got it now! Thanks for the explanation. I might even have got the ESEL/DONKEY joke if my German school studies were not 30+ years in the past.

      Cheers,

      JohnGG