Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Hope a subroutine will return undef by default

by qj1020 (Initiate)
on Feb 11, 2014 at 17:23 UTC ( #1074457=note: print w/replies, xml ) Need Help??


in reply to Re: Hope a subroutine will return undef by default
in thread Hope a subroutine will return undef by default

Thanks to you all for replying and giving me some thoughts. Will check out the link of the youtube video when I get more time.

Here is more of the context: the subroutines (in the form of strings) was sent to my server on the fly for execution by a function under my control. I wish I can go and change the source of the subroutines to add an explicit "return undef" (the function is executed on my side in scalar context, so it's ok) but I can't. I am thinking of modifying the incoming subroutines, if it doesn't have a "return undef" before the ending of the subroutine, I will add one. But it's not elegant.

  • Comment on Re^2: Hope a subroutine will return undef by default

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1074457]
help
Chatterbox?
erix tu-tuu-tududu
Discipulus english has serious problems that reflect on programming terms..
[Discipulus]: ++erix
[Lady_Aleena]: Hello.
[Discipulus]: why github use 'pull request' instead of 'push request'? where is the subject?
[Discipulus]: I'm the subject or is the program? i think i always am the subject
[erix]: it an invite to pull, as I understand it
[Discipulus]: Concave or convex?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2017-05-27 20:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?