noname has asked for the wisdom of the Perl Monks concerning the following question:
Hi Dear Monks,
I have a rather stupid question, lately I had to type a lot of things like that:
$path=$var1.'/'.$var2; and so on,
also I know that the same can be written this way:
$path="${var1}/${var2}";
and it seem that the second way is a bit easier to type (at least for me).
Which one should I stick to ? Are there any benefits/problems with first or second method ?
Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: filesystem path concatenation
by Your Mother (Archbishop) on Sep 28, 2015 at 14:35 UTC | |
by RichardK (Parson) on Sep 28, 2015 at 14:58 UTC | |
by Your Mother (Archbishop) on Sep 28, 2015 at 22:52 UTC | |
by noname (Sexton) on Sep 29, 2015 at 09:15 UTC | |
by locked_user sundialsvc4 (Abbot) on Sep 28, 2015 at 20:14 UTC | |
|
Re: filesystem path concatenation
by toolic (Bishop) on Sep 28, 2015 at 14:13 UTC | |
|
Re: filesystem path concatenation
by karlgoethebier (Abbot) on Sep 28, 2015 at 14:10 UTC |