Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: CPAN shell - passing params for module installation

by shmem (Chancellor)
on Jan 18, 2007 at 09:51 UTC ( [id://595206]=note: print w/replies, xml ) Need Help??


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

Maybe next time, post, not anonymously and perhaps a bit more friendly?
like this perhaps?
perl -le 'print map{pack c,($-++?1:13)+ord}split//,"ESEL\c_:,("'

;-)

--shmem

update: the Anonymous Monk wasn't me.

_($_=" "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}

Replies are listed 'Best First'.
Re^4: CPAN shell - passing params for module installation
by johngg (Canon) on Jan 18, 2007 at 10:15 UTC
    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

      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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://595206]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-26 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found