2. Example 2

#!/usr/bin/perl
#program name example2.pl
#gives the output of the variable $name
$name="charlie";
print("greetings $name\n");