Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 perusing the Monastery: (8)
As of 2014-12-25 13:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls