Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by blazar (Canon)
on Oct 11, 2008 at 10:10 UTC ( #716580=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    map (sub { "1" x $_ }, (1..10));
    
  2. or download this
    C:\temp>perl -E "say for map sub {1 x $_} => 1..3"
    CODE(0x182a944)
    CODE(0x182a944)
    CODE(0x182a944)
    
  3. or download this
    C:\temp>perl -E "say for map { my $x=$_; sub {1 x $x} } 1..3"
    CODE(0x23aa7c)
    CODE(0x182aef4)
    CODE(0x182ad74)
    
  4. or download this
    C:\temp>perl -E "my $_; say for map sub {1 x $_} => 1..3"
    CODE(0x23a97c)
    CODE(0x182a9bc)
    CODE(0x183bbbc)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://716580]
help
Chatterbox?
[Corion]: Meh... Github (understandably) doesn't allow files larger than 100MB, but my rebase of an older repo (from Github) includes such a file and now I can't push my changes there
[Corion]: Maybe that is the push I need to finally try out Gitprep ;)
[Corion]: On the upside, I should finally improve Image::CCV to also do ImageNet classification using their pretrained parameters
[Lady_Aleena]: Hello Corion.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2017-09-24 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (274 votes). Check out past polls.

    Notices?