Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: array join missing zero and space

by jimmy.tty (Scribe)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912858]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2017-12-17 07:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (462 votes). Check out past polls.

    Notices?