Re: SimpleList->new_from_treeview



* Ross McFarland <rwmcfa1 neces com> [2003-10-02 06:19]:
not really in perl, when you're using shift anyway.

I know, but you can check @_ in scalar context.

sub foo
{
       croak "Need one parameter" if @_ != 1;
     my $bar = shift;
}

foo ();
foo (undef);

-- 
Regards,
Aristotle
 
"If you can't laugh at yourself, you don't take life seriously enough."



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]