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
In reply to Re: join doesn't seem to insert separators
by zdog
in thread join doesn't seem to insert separators
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |