Interpolcation inside scalar variable : interpolation « String « Perl






Interpolcation inside scalar variable

    

#!/usr/bin/perl -w

use strict;

my $name = "Tom";
my $salutation = "Dear $name,";
print $salutation, "\n";

   
    
    
    
  








Related examples in the same category

1.Using {} to separate variable in variable interpolation
2.Variable Interpolation
3.String interpolation
4.Using string interpolation to reference two dimensional array element