Keep It Simple, Stupid | |
PerlMonks |
filesystem path concatenationby noname (Sexton) |
on Sep 28, 2015 at 14:02 UTC ( [id://1143245]=perlquestion: print w/replies, xml ) | Need Help?? |
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!
Back to
Seekers of Perl Wisdom
|
|