It means the date is some function and get the information of date and
send the value to $date, right?
$date = `date`, so even the date is quoted,but is not a string.
right?
John Bokma wrote:
> "yezi" <> wrote:
>
> > Dear all:
> >
> > The following code is like this:
> > # 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`;
> > print " $logfile $date";
> >
> >
> > suppose the output to the screen is :
> >
> > /www/etc/logs/progra.log date
> >
> > however the outpur is /www/etc/logs/progra.log Wed Aug 3 17:29:06
> > MDT 2005
> >
> >
> > that means the $date is current date but not a string , right?
>
> wrong
>
> > $date is
> > kind of reserved variable?
>
> no
>
> It gets its value from `date`. Look up what back ticks do in Perl.
>
> --
> John Small Perl scripts: http://johnbokma.com/perl/
> Perl programmer available: http://castleamber.com/
> Happy Customers: http://castleamber.com/testimonials.html