Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: join doesn't seem to insert separators

by zdog (Priest)
on Sep 13, 2004 at 23:18 UTC ( #390700=note: print w/ replies, xml ) Need Help??

in reply to join doesn't seem to insert separators

Try this:

print join( ":", "dog", "day", "afternoon" );

The first argument join() takes is the expression with which you want to connect the list. In this case, you want to pass a string rather than a regular expression (or whatever /:/ turns out to be).

Zenon Zabinski | zdog |

Comment on Re: join doesn't seem to insert separators
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2015-11-25 03:33 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (670 votes), past polls