logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Zonemaster::Engine::NSArray - Class implementing arrays that lazily looks up name server addresses from

Author

       Calle Dybedahl, "<calle at init.se>"

perl v5.40.1                                       2025-03-21                   Zonemaster::Engine::NSArray(3pm)

Description

       This class is used for the "glue" and "ns" attributes of the Zonemaster::Engine::Zone class. It is
       initially seeded with a list of names, which will be expanded into proper Zonemaster::Engine::Nameserver
       objects on demand. Be careful with using Perl functions that act on whole arrays (particularly
       "foreach"), since they will usually force the entire array to expand, negating the use of the lazy-
       loading.

Methods

       These are all methods implementing the Perl tie interface. They have no independent use.

       TIEARRAY
       STORE
       STORESIZE
       FETCH
       FETCHSIZE
       EXISTS
       DELETE
       CLEAR
       PUSH
       UNSHIFT
       POP
       SHIFT
       SPLICE
       UNTIE

Name

       Zonemaster::Engine::NSArray - Class implementing arrays that lazily looks up name server addresses from
       their names

Synopsis

           tie @ary, 'Zonemaster::Engine::NSArray', @ns_names

See Also