Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Padding with sprintf changing number

by hrcerq (Scribe)
on Sep 25, 2021 at 18:30 UTC ( [id://11137013]=note: print w/replies, xml ) Need Help??


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;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11137013]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (3)
As of 2024-04-18 23:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found