Rusty Carruth <[EMAIL PROTECTED]> writes:
> In bash,
> 
>       variable=`date` # use options if you want it to make more sense later.
> 
> in PERL:
> 
>       my $now = system("date");

Whoops.  That exectutes the date command but doesn't capture the
output - the output still goes where it normally would (stdout).

I think you meant:

        my $now = `date`;

> or
> 
>       my $now = scalar localtime;

Which may be better anyway, because it doesn't involve an extra
process.

{Bryan}
-- 
Bryan Howard <[EMAIL PROTECTED]>

Reply via email to