Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 rifling through the Monastery: (11)
As of 2014-10-24 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (131 votes), past polls