Re: Check if a given function returns something

2008-03-01 Thread MK
On 03/01/2008 10:42:44 AM, Tom Phoenix wrote: -> Here's another pair for you. Your mail client is probably only -> showing -> the basic email header lines, which would include the "to:" header -> indicating that you're the primary recipient. Get your program to -> show Tom i actually cat & grepp

Re: Check if a given function returns something

2008-03-01 Thread Tom Phoenix
On Sat, Mar 1, 2008 at 7:09 AM, MK <[EMAIL PROTECTED]> wrote: > -> Because Tom replied to both you and the list. > > Maybe so, but get this: I definitely have two identical messages > addressed to me (none to the list, which makes it stranger) Here's another pair for you. Your mail client is p

Re: Check if a given function returns something

2008-03-01 Thread MK
On 03/01/2008 07:53:53 AM, Jeff Pang wrote: -> On Sat, Mar 1, 2008 at 8:39 PM, MK <[EMAIL PROTECTED]> -> wrote: -> > ps. Tom do you know why are you one of those people who's messages -> > always appear twice in my mailing list? -> > -> -> Because Tom replied to both you and the list. Maybe so,

Re: Check if a given function returns something

2008-03-01 Thread Jeff Pang
On Sat, Mar 1, 2008 at 8:39 PM, MK <[EMAIL PROTECTED]> wrote: > ps. Tom do you know why are you one of those people who's messages > always appear twice in my mailing list? > Because Tom replied to both you and the list. By using Gmail you will go without this trouble. -- To unsubscribe, e-mail

Re: Check if a given function returns something

2008-03-01 Thread MK
ps. Tom do you know why are you one of those people who's messages always appear twice in my mailing list? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Check if a given function returns something

2008-03-01 Thread MK
On 02/29/2008 06:57:52 PM, Tom Phoenix wrote: -> > I meant that "return" called alone simply gives you a zero. -> -> Without an argument, return gives the sub's caller either undef or an -> empty list, depending upon context. -> What do you do with return that "gives you a zero"? well you are c

Re: Check if a given function returns something

2008-02-29 Thread Tom Phoenix
On Fri, Feb 29, 2008 at 2:36 PM, MK <[EMAIL PROTECTED]> wrote: > Okay, now i apologize for being stupid whilst jumping a gun. By return > I meant that "return" called alone simply gives you a zero. Without an argument, return gives the sub's caller either undef or an empty list, depending upon

Re: Check if a given function returns something

2008-02-29 Thread MK
On 02/29/2008 11:21:52 AM, Tom Phoenix wrote: -> On Thu, Feb 28, 2008 at 4:28 PM, MK <[EMAIL PROTECTED]> -> wrote: -> -> > # do not "use strict" because i don't. that's all. but wait a minute... -> > The purpose of -> > return is to exit the subroutine at some arbitrary point and the -> retu

Re: Check if a given function returns something

2008-02-29 Thread Tom Phoenix
On Thu, Feb 28, 2008 at 4:28 PM, MK <[EMAIL PROTECTED]> wrote: > # do not "use strict" Why not? > The purpose of > return is to exit the subroutine at some arbitrary point and the return > value is limited (usually to indicate "success" or "failure"). What does "the return value is limited"

Re: Check if a given function returns something

2008-02-28 Thread MK
On 02/27/2008 02:59:30 AM, vijay krishna wrote: -> Hi All, -> I want to check if a sub routine that I am calling -> returns a value or not. -> This is how my code is -> $str = function(parameter) -> -> sub function -> { -> -> .. -> -> } -> -> the sub routine func

Re: Check if a given function returns something

2008-02-27 Thread Jeff Pang
On Wed, Feb 27, 2008 at 3:59 PM, vijay krishna <[EMAIL PROTECTED]> wrote: > > the sub routine function in turn uses many other function. Some of these > functions have a return statement and some do not. > The caller doesn't care about what were enclosed in that function. I need only the last re

Check if a given function returns something

2008-02-26 Thread vijay krishna
Hi All, I want to check if a sub routine that I am calling returns a value or not. This is how my code is $str = function(parameter) sub function { .. } the sub routine function in turn uses many other function. Some of these functions have a return statement