in reply to Padding with sprintf changing number

Hi.

Not sure what you tried to do here, but there's a syntax mistake on the following line:

sub amnt($amn)

If you wanted to use a prototype, then it should be written like this:

sub amnt($)

return on_success() or die;

Replies are listed 'Best First'.
Re^2: Padding with sprintf changing number
by Anonymous Monk on Sep 25, 2021 at 18:45 UTC
      If OP had activated this feature , then we would probably see the variable $amn appearing in the function's body.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

        Also, signatures are still experimental, so relying on it (except for... well, experiments) is not advisable.

        return on_success() or die;