Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Is there a reason to use "join" instead of just using the period?

by BrowserUk (Patriarch)
on Nov 18, 2010 at 19:07 UTC ( [id://872326]=note: print w/replies, xml ) Need Help??


in reply to Is there a reason to use "join" instead of just using the period?

Perhaps he didn't know about the ${varname} technique and had trouble with the underscores.

Personally, I like your last one best. Though I'd use single quotes for constant bits.

Mind you, if you remove the redundant double quote from his variables, that looks a lot less busy:

$hotfix = join '', $app, '_', $mod, '_', $bld, '_', $hf, '.zip';

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-25 05:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found