Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: array join missing zero and space

by jimmy.tty (Sexton)
on Jul 05, 2011 at 18:18 UTC ( #912858=note: print w/ replies, xml ) Need Help??


in reply to Re: array join missing zero and space
in thread array join missing zero and space

Another alternative:

@numbers = (4,7,11,14); printf '0 %d ' x $#numbers . '0 %d', @numbers


Comment on Re^2: array join missing zero and space
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2015-05-07 05:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (155 votes), past polls