Rmck wrote: > > How do you use a shell command in a sprintf. Im trying to add the week of the > year to the end of my file name: > > my $logfile = sprintf '/var/sno/weeks/week_'. `date +%W`.'/%02d%02d%02d%02d%02d.sno', > $year % 100, $mon + 1, $day, $hour, $min;
use POSIX qw( strftime ); my $logfile = strftime '/var/sno/weeks/%W/%y%m%d%H%M.sno', localtime; John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]