Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: Just before subroutine returns

by LanX (Saint)
on Aug 30, 2017 at 00:12 UTC ( [id://1198314]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Just before subroutine returns
in thread Just before subroutine returns

I'd recommend Keyword::Simple , but for completeness: a sub can be left without return.

Possibilities include:

  • implicit return at body's end
  • goto label in caller chain
  • goto &sub
  • die exception

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^5: Just before subroutine returns
by RonW (Parson) on Aug 30, 2017 at 18:58 UTC

    This is true, of course. So, would still need something like End to catch those cases. (Though the implicit return at the body's end could be "hand modified".)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2024-03-29 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found