Christopher Spears wrote:
> I want to catch the various parts of the output of the
> date command.

Is there something the date command can do that Perl's localtime(), gmtime(),
POSIX::strftime(), etc. cannot do?

perldoc -f localtime
perldoc -f gmtime
perldoc POSIX


>  Here is my script:
> 
> #!/usr/bin/perl -w
> use strict;
> 
> my $date = system("date");

perldoc -f system

The documentation for system() tells you how to do what you want.


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to