Using {} to separate variable in variable interpolation : interpolation « String « Perl






Using {} to separate variable in variable interpolation

   

$text = "un";
print "Don't be ${text}happy.";

   
    
    
  








Related examples in the same category

1.Variable Interpolation
2.String interpolation
3.Using string interpolation to reference two dimensional array element
4.Interpolcation inside scalar variable