Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Inheritance when subclass passed as a parameter

by tobyink (Canon)
on Feb 06, 2020 at 08:43 UTC ( [id://11112481]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Inheritance when subclass passed as a parameter
in thread [Solved] Inheritance when subclass passed as a parameter

I thought I replied to this yesterday, but I guess I did the thing where I preview a post and then forgot to actually post it.

Anyway, the Service class is usable in its own right, so it makes sense to keep it as a class, not a role.

my $text = Service->new( template => "[data]\n", data => 'foo' );

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2024-04-25 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found