How to call 2 variable information in perl -
i want variable value in subroutine.
&file($file1, "true"); &file($file1, "false"); sub file { $file = $_[0]; $val = $_[1]; $truelink = final; #i have tried 2 ways: $"$val"link; # 1st $($val)link; # 2nd }
i want $truelink value printed. want $falselink value printed.
thanks
i'm guessing want interpolate $val
inside double quotes , concatenate 'link'
print "${val}link";
Comments
Post a Comment