Re: One sprintf() initializations problem

2007-10-30 Thread Tom Phoenix
On 10/29/07, jiangfan <[EMAIL PROTECTED]> wrote: > What is wrong with this statement? > > my $time = sprintf( "0x%08x", `date +%s` ); I don't know what's wrong with it on your machine, but I'd change the command in backticks to be Perl's time operator: my $time = sprintf("0x%08x", time); Does

Re: One sprintf() initializations problem

2007-10-30 Thread Matthew Whipple
jiangfan wrote: > Hi, > > What is wrong with this statement? > > my $time = sprintf( "0x%08x", `date +%s` ); > > I got > > "Use of uninitialized value in sprintf at /opt/MoteWorks/tos/../make/ > scripts/ident_flags line 15." > > Thanks. > > Jiangfan > > > Works for me. Check to ensure that "dat