Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by FoxtrotUniform (Prior)
on Dec 19, 2001 at 03:33 UTC ( #132970=note: print w/replies, xml ) Need Help??


in reply to TMTOWTDI Puzzle: Generating a range of numbers

Good one, Masem!

my @list = (); my @dummy = qw(one two three four five six seven eight nine ten); while(scalar @dummy) { unshift @list, scalar @dummy; pop @dummy; }

I was originally going to try something similar with a successor function, using a gibberish string to intify to zero, then I hit on the idea of using scalar @list for numbers, and, well....

--
:wq

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132970]
help
Chatterbox?
[jedikaiti]: If I had a flying home, I'd be pretty psyched. How cool would that be?
[jedikaiti]: The big question is, does it have autopilot?
[shmem]: good autonomous flyer doesn't need a pilot.
[karlgoethebier]: The One And Only Flying Home

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2018-02-21 17:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (285 votes). Check out past polls.

    Notices?