Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Too many arguments for subroutine

by chromatic (Archbishop)
on Oct 20, 2023 at 16:12 UTC ( [id://11155112]=note: print w/replies, xml ) Need Help??


in reply to Too many arguments for subroutine

If you're using a Perl of version 5.20 or newer, you can use subroutine signatures. Perl 5.36.0 removed the experimental tag, so use v5.36; will enable them.

See this Effective Perl Programming article about signatures for more details.


Improve your skills with Modern Perl: the free book.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2026-01-15 15:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.