Patrick Kenneally wrote: > > Being very dense about this but I cant capture the Date output to a scalar - > the output is: 20 days ago, it was 020214 > > I want the 020214 in a variable.
perldoc -f sprintf > #!c:/perl/perl.exe > > use Strict; > use Date::Calc qw( Add_Delta_Days Today ); > > ($year, $month, $day) = Add_Delta_Days (Today, -20); > > printf "20 days ago, it was %02d%02d%d\n", $year % 100, $month, $day; my $variable = sprintf "20 days ago, it was %02d%02d%d\n", $year % 100, $month, $day; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
