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

twig - Using Twigbridge in a Laravel 5.1 Package -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -

jdbc - Not able to establish database connection in eclipse -