[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] New User's MacPerl Questions



cn1407@coastalnet.com,Internet writes:
>
>2) My UNIX-centric learning Perl book uses something like system('date')
>get the
>date from the machine. When I do this I always get a -1. I guess my
>question is
>-- where in the documentation does it cover finding the date and
>assigning it to
>a variable?
>
Try this code to see what it does, then highlight "localtime" in MacPerl
and press the help key to get further info.

$date = localtime(time);
@date = localtime(time);

print "Date: $date\n";
print join(" - ", @date), "\n";


-josh


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch