Three quote characters are used in quoting strings in perl. They are used in different ways.
$string1 = 'chocolate'; $string2 = 'I love $string1'; # The value of $string2 is "I love $string1"
$string1 = "chococlate"; $string2 = "I love $string1"; #Now the value of $string2 is "I love chocolate"
$document = "/home/document.txt"; $WordCount = `wc -w $document`; # $wordCount get the number of words in the " /home/document.txt" file. # here is a UNIX command which counts the number of lines, words or characters of a file.
# the sendmail binary. $sendmail = "/usr/lib/sendmail"; # base of your httpd installation. $basedir = '/www'; # log file $logfile = "$basedir/etc/logs/$progname.log"; # today $date = `date`; # where date is a UNIX shell command that returns today's date