Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

RE: Generating a Pattern

by fundflow (Chaplain)
on Jul 25, 2000 at 01:29 UTC ( #24194=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @a = (1);
    for (1..10) {
    ...
        { $na[-1] == $_ ? $na[-2]++ : push @na, (1, $_) }
      @a=@na;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2016-08-27 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (379 votes). Check out past polls.