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} )

example:

 # Extract parameters.
  my $alias   = delete $param{Alias};
  my $address = delete $param{Address};
  my $port    = delete $param{Port};
  my $domain  = delete $param{Domain};

thx,
bobm

Reply via email to