Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by talexb (Canon)
on Nov 19, 2010 at 15:54 UTC ( #872533=note: print w/ replies, xml ) Need Help??


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

Just compare the three ways of doing it (from your code):

    $hotfix=join "", "$app", "_", "$mod", "_", "$bld", "_", "$hf", ".zip";
    $hotfix = "${app}_${mod}_${bld}_${hf}.zip";
    $hotfix = join("_", $app, $mod, $bld, $hf) . ".zip";
I prefer the last way, myself -- it's cleaner and the least noisy from a visual point of view.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds


Comment on Re: Is there a reason to use "join" instead of just using the period?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-07-05 22:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (68 votes), past polls