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 context. Can you give an example of Perl code that shows what you're talking about? Here's what I'm talking about: sub return_empty { return; } my $scalar_value = &return_empty(); # gets undef my @list_value = &return_empty(); # gets empty list What do you do with return that "gives you a zero"? --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/