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

RE: simple perl question



dave oswald <david.oswald@citicorp.com> writes:
>
> Normally I would consult with my reference books but am not able to 
> get to them. 

    Or you could just try it! :)

>I thought maybe something like:
>
>$CurrentTime=exec`date "+%D %T"`;
>print $CurrentTime;
>

    % perl -e '$CurrentTime = `date "+%D %T"`; print $CurrentTime'
    07/17/98 22:10:42


                                -Jeff


   *********************************************************************
   |     Jeff Schreiber       | System administrators are, of course,  |
   |     aka - "Spectre"      | incorruptible.  You can offer me any   |
   | schreiber@mx.process.com | amount of money.  And you can believe  |
   |                          | me, because I'm always right, and I    |
   |                          | never lie.                             |
   |                          |     (Paul Sand - pas@unh.edu)          |
   *********************************************************************


--  
Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null


Reply to: