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

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -