Please don't top post. ------------------------------------------------ On Mon, 21 Jul 2003 12:25:26 -0700, Jaimee Spencer <[EMAIL PROTECTED]> wrote:
> Hello, Tim. > > Try something like > > #!/usr/bin/perl -w > > use strict; > > system("date"); > Don't use this method unless you know of a *very* good reason to do it. If you are going to shell out to get the date which you shouldn't in the first place, at least use a full path to the command, check the return value of system, and if you intend to use the date for anything other than printing to stdout then you will want to use backticks instead of 'system'. In general it is less portable, more error prone, slower, and insecure... See Kevin's post for a better way. http://danconia.org > > -----Original Message----- > From: Tim McGeary [mailto:[EMAIL PROTECTED] > Sent: Monday, July 21, 2003 12:18 PM > To: [EMAIL PROTECTED] > Subject: date > > > Is there anyway to get the date from the system in perl? > > Tim > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]