On Thu, Jun 07, 2012 at 16:59:58 -0400 , Shawn H Corey wrote:
> On 12-06-07 04:48 PM, Chris Stinemetz wrote:
> >sub getMarketCells {
> > my $val = shift;
> > foreach my $k ( keys %apcHash ) {
> > my($start, $end) = @{$apcHash{$k}}{qw/start end/};
> > return($start, $end) if $val eq $k;
> > }
> > return "";
>
> return;
>
> >}
>
> A return with any argument will return undef in scalar context, () in
> list context. This is considered better than return an empty string.ITYM *without* any argument. -- Chris Nehren | Coder, Sysadmin, Masochist Shadowcat Systems Ltd. | http://shadowcat.co.uk/
pgpeyvSTvHQe9.pgp
Description: PGP signature
