Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

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


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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-18 08:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found