in reply to Zone File manipulation

(Ouch! Don't forget that closing > on a </a> when posting to PerlMonks! I am finding it impossible to edit my previous post using Galeon 1.2.7. Contact me if you are part of the dev team and want further details.)

Here's a slightly more complicated, but better snippet. This only updates the elements of the hash you want to change and leaves the other ones as previously set:

%$soa = (%$soa, refresh => '3600', retry => '600', ttl => '68400', minimumTTL => '1800');

-- Eric Hammond

Replies are listed 'Best First'.
Re: Re: Zone File manipulation
by isotope (Deacon) on Aug 16, 2003 at 00:08 UTC
    Or maybe more reliably:
    $soa->{refresh} = 3600; $soa->{retry} = 600; ...
    Anyway, the point is that the soa() method returns a reference to a hash, not an array ref.

    --isotope