in reply to Re: Generate the perl sequence 1, 11, 111, ....
in thread Generate the perl sequence 1, 11, 111, ....
What I don't understood is how it is possible that map can accept different syntax. For example, is it possible to write a perl subroutine that does the same thing, myPerlSub BLOCK LIST@ones =map("1" x $_, 0..10) ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Generate the perl sequence 1, 11, 111, ....
by AnomalousMonk (Archbishop) on Oct 10, 2008 at 09:07 UTC | |
|
Re^3: Generate the perl sequence 1, 11, 111, ....
by quester (Vicar) on Oct 10, 2008 at 09:34 UTC | |
by blazar (Canon) on Oct 11, 2008 at 10:10 UTC | |
|
Re^3: Generate the perl sequence 1, 11, 111, ....
by blazar (Canon) on Oct 11, 2008 at 09:49 UTC |