Re: interactive mode ` ` in perl script

From: Joe Smith (joe_at_inwap.com)
Date: 03/03/05


Date: Thu, 03 Mar 2005 13:07:11 -0800

DGG wrote:

> I am using ActivePerl, and running on DOS/Windows.
> So I would use `date` to get the current date.

I take it that you haven't tried using localtime() in scalar mode.
        $date_as_a_string = localtime;

You should learn the difference between
        print localtime(),"\n";
and
        print localtime()."\n";