Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: why avoid & on function call

by kcott (Archbishop)
on Dec 27, 2020 at 19:14 UTC ( [id://11125810]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -wE '
        sub meaning () { 42 }
        say meaning();
    '
    42
    
  2. or download this
    $ perl -wE '
        say meaning();
    ...
    '
    main::meaning() called too early to check prototype at -e line 2.
    42
    
  3. or download this
    $ perl -wE '
        sub meaning ();
    ...
        sub meaning () { 42 }
    '
    42
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-09-09 17:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.