in reply to Getting The Date Command to Redirect to File
You'd want backticks (``) or qx(): chomp(my $date = qx(date +%x_%T)); but there's no need to call the 'date' program when Perl has things to do it for you. See POSIX for the strftime() function:
use POSIX 'strftime'; my $date = strftime "%x_%T", localtime;
_____________________________________________________
Jeff[japhy]Pinyan:
Perl,
regex,
and perl
hacker, who'd like a job (NYC-area)
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;
|
|---|