Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Procedural vs OOP modules

by The Perlman (Scribe)
on Oct 29, 2021 at 00:38 UTC ( [id://11138162]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11138162]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2024-04-18 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found