use backticks:
my $date = `date +%x_%T`; print " date is " . `date +%x` . " until midnight\n"; date is 11/22/02 until midnight
In reply to Re: Getting The Date Command to Redirect to File
by fglock
in thread Getting The Date Command to Redirect to File
by dru145
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |