Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: join doesn't seem to insert separators

by zdog (Priest)
on Sep 13, 2004 at 23:18 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://390700]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-25 21:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found