On Jun 12, Leila Lappin said: >I thought getting the date would be like how it's in a shell script >`date` but it does not seem to be working. Could someone please advise >me on this I tried searching archives on "date" but didn't get anything >useful. It's possible I'm looking in the wrong place.
Don't use the shell. Perl provides you with the localtime() and time() functions. perldoc -f localtime perldoc -f time Perhaps if you tell us what format you want the date and time in, we could be of more service. But even before you ask us that, I direct your attention to the POSIX::strftime() function, which takes a format string similar to the /usr/bin/date program. perldoc POSIX man strftime -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]