Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Procedural vs OOP modules

by Bod (Parson)
on Oct 28, 2021 at 23:19 UTC ( [id://11138158]=note: print w/replies, xml ) Need Help??


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

So if I only want methods that take a value and return another value, it will be procedural...

That's a beautifully elegant exppanation choroba - thnk you

Replies are listed 'Best First'.
Re^3: Procedural vs OOP modules
by perlfan (Vicar) on Oct 29, 2021 at 08:59 UTC
    I don't think this is necessarily true. The whole "data encapsulation" thing is a little fuzzy in practice with Perl. I think most people can agree to this. Having that deref syntax is nice, particularly if you tend to use a lot of hash refs.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 14:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found