Re: SimpleList->new_from_treeview
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: SimpleList->new_from_treeview
- Date: Thu, 2 Oct 2003 09:42:54 +0200
* 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]