Rob Dixon wrote: > > Ronald Yacketta wrote: > > > > use POSIX; > > > > $TODAY = strftime("%d%m%Y", localtime()); > > > > print $TODAY; > > > > 13062003 > > That's a good way to do it, but the POSIX module is /huge/. If > this is all you want of it then the following is more concise.
Yes it is rather large but you can import only the functions you need without getting the whole module. $ perl -le' use POSIX; print strftime( "%D %T", localtime ); print ctime( time ); ' 06/13/03 12:11:33 Fri Jun 13 12:11:33 2003 $ perl -le' use POSIX qw/strftime/; print strftime( "%D %T", localtime ); print ctime( time ); ' 06/13/03 12:11:48 Undefined subroutine &main::ctime called at -e line 4. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]