in reply to issue with sprintf..

I get four times the same value, so it works for me. Also, it looks as if you want to pad shorter than 11-digit numbers with leading zeroes, this can be achieved by

$Val1 = sprintf("%011d", $Val1);

Replies are listed 'Best First'.
Re^2: issue with sprintf..
by LanX (Saint) on Jan 09, 2014 at 10:30 UTC
    > I get four times the same value,

    Your Perl is compiled for 64 bits?

    Cheers Rolf

    ( addicted to the Perl Programming Language)

      Yes, it is. Could "%u" be helpful?

        nope, already tested.

        edit

        DB<112> $val=12143951645 => "12143951645" DB<113> sprintf("%11u", $val); => " 4294967295"

        Cheers Rolf

        ( addicted to the Perl Programming Language)