HI
I am new to Perl and want to know if there is difference in below declaration
Type 1:
my $filename=sprintf("%s/filename1.log.%s",$file_dir,$todayDate);
Type 2:
my $filename="${file_dir}/filename1.log.${today_date}";
I know both declarations will work, but want to know which is good practice and if there is any reason for the same.
Thanks in advance.
In reply to string concatenation, which way is better? by faneesh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |