Changeset 804
- Timestamp:
- 11/09/20 18:21:27 (5 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/DNSDB.pm (modified) (2 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/DNSDB.pmr795 r804 508 508 # the serial effectively runs backwards. technically this breaks AXFR slaves. 509 509 510 ##perlnote 511 # Nested subs... aren't. Subs have file or execution scope, sort of (not sure which ATM), so we 512 # have to abuse the "anonymous sub" construct and bend our code in a pretzel to work around this limitation. 513 510 514 # heavy lifting done in this sub-sub. updates may be needed on a forward zone, reverse zone, or both, depending. 511 sub __doupdate{515 my $serup = sub { 512 516 my $rev = shift; 513 517 my $zid = shift; … … 540 544 # Your llama is on fire 541 545 } 542 } 546 }; 543 547 544 548 if ($args{rdns_id}) { 545 __doupdate('y', $args{rdns_id});549 &$serup('y', $args{rdns_id}); 546 550 } 547 551 548 552 if ($args{domain_id}) { 549 __doupdate('n', $args{domain_id});553 &$serup('n', $args{domain_id}); 550 554 } 551 555 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![[ DNS Administrator ]](/fx/dnsadmin-logo.png)
