Variable Interpolation : interpolation « String « Perl






Variable Interpolation

   

#!/usr/bin/perl
use warnings;
use strict;
my $name = "Tom";
print "My name is $name\n";

   
    
    
  








Related examples in the same category

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