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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -