Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: TMTOWTDI Puzzle: Generating a range of numbers

by larsen (Parson)
on Dec 19, 2001 at 03:47 UTC ( #132971=note: print w/replies, xml ) Need Help??


in reply to TMTOWTDI Puzzle: Generating a range of numbers

Just a silly answer :). When men didn't have digits, they used fingers or sticks to count... ;-)

my @numbers = ( ['|'], ['|', '|'], ['|', '|', '|'], ['|', '|', '|', '|'], ['|', '|', '|', '|', '|'], ['|', '|', '|', '|', '|', '|'], ['|', '|', '|', '|', '|', '|', '|'], ['|', '|', '|', '|', '|', '|', '|', '|'], ['|', '|', '|', '|', '|', '|', '|', '|', '|'], ['|', '|', '|', '|', '|', '|', '|', '|', '|', '|'], ); foreach( @numbers ) { print scalar @$_; print "\n"; }

Replies are listed 'Best First'.
Re: Re: TMTOWTDI Puzzle: Generating a range of numbers
by Juerd (Abbot) on Dec 19, 2001 at 04:07 UTC
    I just couldn't resist it... When I saw they used fingers to count, I immediately thought of counting candles...
    my @numbers = ( ['|'] , ['|','|'] , ['|','|','|'] , ['|','|','|','|'] , ['|','|','|','|','|'] , ['|','|','|','|','|','|'] , ['|','|','|','|','|','|','|'] , ['|','|','|','|','|','|','|','|'] , ['|','|','|','|','|','|','|','|','|'] , ['|','|','|','|','|','|','|','|','|','|'] , ) ; foreach ( @numbers ) { print scalar @$_; print "\n"; }

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://132971]
help
Chatterbox?
[stevieb]: it is exceptionally difficult I'm finding to debug a dist that is x-platform, where on each platform you're wrapping a different binary. Trying to co-ordinate a successful test run where tests are extensive is a nightmare, especially when the dist...
[stevieb]: ...you're testing is a test system itself. 10+ documented issues fixed, another half dozen found while fixing the original ones. I'm getting there...
[stevieb]: Then throw in changes to Windows that throws everything you trusted right out the window.
[shmem]: that's why it is called "Windows"
[stevieb]: shmem thanks for the 'insight' :P
[shmem]: good thing that Sun already took "OpenWindows", otherwise I'd not stop to shudder imagining an "OpenWindows" from MS
[shmem]: more garbage in, more garbage out that would be
[stevieb]: I found that win10 broke a C# library I was using for one project while enhancing tests for a Perl dist, which breaks other Perl dists, and I'm about to throw my hands up on berrybrew. win2k12 broke one thing, win10 breaks something...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2017-03-28 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (342 votes). Check out past polls.