Re: One sprintf() initializations problem



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 "date +%s" is returning what you
expect from the command line.
.