Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by premchai21 (Curate)
on Dec 19, 2001 at 08:21 UTC ( #133016=note: print w/ replies, xml ) Need Help??


in reply to TMTOWTDI Puzzle: Generating a range of numbers

my $foo = 'HelloWorld!'; my @bar; do { chop $foo; push @bar, length $foo } while ($foo); pop @bar; @bar = reverse @bar; @bar;

Not the most original, probably, but it works.


Comment on Re: TMTOWTDI Puzzle: Generating a range of numbers
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (14)
As of 2014-08-22 17:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (161 votes), past polls