Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by George_Sherston (Vicar)
on Dec 19, 2001 at 05:18 UTC ( #132990=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $obsession = 'Perlmonks!';
    my @day;
    while ($obsession) {
    ...
        chop $obsession;
    }
    print length $_, "\n" for reverse @day;
    
  2. or download this
    my $obsession = 'Perlmonks!';
    my @day;
    while ($obsession) {
    ...
        chop $obsession;
        print scalar @day, "\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2016-06-29 14:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (383 votes). Check out past polls.