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

Re: generating a list of identical elements

by tilly (Archbishop)
on Jan 19, 2011 at 16:53 UTC ( [id://883158]=note: print w/replies, xml ) Need Help??


in reply to generating a list of identical elements

If you want to use the map version:
sub makelist { my ($elem, $count) = @_; map $elem, 1..$count; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found