Strings


Three quote characters are used in quoting strings in perl. They are used in different ways.

Here are some examples:

        # 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

Previous PageTable of ContentNext Page