in reply to Re^2: Procedural vs OOP modules
in thread Procedural vs OOP modules

For completeness: You can also share state between functions with the help of closures.
- Ron

Replies are listed 'Best First'.
Re^4: Procedural vs OOP modules
by LanX (Saint) on Oct 29, 2021 at 08:50 UTC
    Actually I'd rather prefer Dumper instances implemented as closures.

    The setup methods here are just constructors in disguise, no need to call them more than once.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery