Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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: (1)
As of 2024-04-25 04:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found