At Mon, 6 Jan 2003 08:48:52 -0600,
Bob Maccione wrote:
> Simple question on some code that I've been looking at (in this case:
> Component::Server::TCP ).
>
> Is there a good reason for doing the following:
>
> my $var = delete $param{Fld};
>
> I see this a lot when parsing the input args and am trying to figure out any
> advantage of doing the delete over just an assignment (ie: $var =
> $param{Fld} )
If client supplies only valid parameters, %param becomes empty.
then go down the code and you'll find:
# Complain about strange things we're given.
foreach (sort keys %param) {
carp "$mi doesn't recognize \"$_\" as a parameter";
}
--
Tatsuhiko Miyagawa <[EMAIL PROTECTED]>