http://www.perlmonks.org?node_id=716377


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

I wanted to post something similar
@ones =map("1" x $_, 0..10) ;
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
Thnx
LuCa

UPDATE: thnx for the explanation!!