Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Generate the perl sequence 1, 11, 111, ....

by monarch (Priest)
on Oct 10, 2008 at 07:17 UTC ( #716369=note: print w/replies, xml ) Need Help??


in reply to Generate the perl sequence 1, 11, 111, ....

my $one = "1"; my @ones = ( $one ); while ( 1 ) { $one .= "1"; push( @ones, $one ); }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716369]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-11-25 10:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (355 votes). Check out past polls.

    Notices?