Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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 | zdog@perlmonk.org

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://390700]
help
Chatterbox?
erix .oO( "remove child" )
[choroba]: erix Reminds me of people selling second hand clothes made by the famous "Keep Away From Fire" brand

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2017-01-16 16:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (151 votes). Check out past polls.