Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Guess what it does ... and a challenge

by blokhead (Monsignor)
on May 24, 2008 at 19:36 UTC ( #688319=note: print w/ replies, xml ) Need Help??

in reply to Guess what it does ... and a challenge

I parsed that code correctly in my head, but didn't realize what the result would be.

Here is a program of the same length (as your second snippet) that does the same thing slowly:


Comment on Re: Guess what it does ... and a challenge
Select or Download Code
Replies are listed 'Best First'.
Re^2: Guess what it does ... and a challenge
by mtve (Chaplain) on May 31, 2008 at 19:35 UTC

      No, it won't. Now, if you do $_='a' first, then it will, and extremely slowly too.

      - tye        

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-11-29 04:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls