Config-Hosts

 view release on metacpan or  search on metacpan

lib/Config/Hosts.pm  view on Meta::CPAN

=head2 update_host ($$)

Updates an entry in hosts table. Arguments should be of the following
format: $self->update_host($ip_or_host, ip => $new_ip, hosts => [
@new_hosts ]);

New hosts' argument may be a single scalar instead of arrayref.

=cut

sub update_host ($$%) {

	my $self   = shift;
	my $host   = shift;
	my %params = @_;

	my $type = $self->determine_ip_or_host($host);
	if (! $type) {
		print STDERR "Invalid host $host supplied\n";
		return 0;
	}

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.472 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )