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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -