Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Just another Perl shrine
 
PerlMonks  

Re: Re: Re: {3} Using Variables in Path Names

by impossiblerobot (Deacon)
on Nov 28, 2001 at 16:25 UTC ( [id://128103]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: Re: {3} Using Variables in Path Names
in thread Using Variables in Path Names

As far as I can tell, using 'join' or the concatenation operator(.) are both reasonably fast; interpolation is slower than either. Of course, you would have to do a lot of joining for it to make any difference in the speed of your program.
If interpolation is more readable (which I think it is), you could always do this:
my $dir = $HOME.'/'.$first.'/'.$second;

for the extra speed boost. :-)
(Actually, that's kind of ugly, too. I would probably just interpolate.)

Impossible Robot

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://128103]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.