Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Think about Loose Coupling
 
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 pondering the Monastery: (4)
As of 2014-04-19 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls