Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Moose? Add a new attribute to a XML::Feed::Content object?

by uG (Scribe)
on Mar 28, 2011 at 15:15 UTC ( #895943=note: print w/ replies, xml ) Need Help??


in reply to Re: Moose? Add a new attribute to a XML::Feed::Content object?
in thread Moose? Add a new attribute to a XML::Feed::Content object?

By monkey patch, do you mean modifying my local version of XML::Feed::Content.pm? The reason I mention Moose is because I thought the right solution would be a Moose class that inherits everything from XML::Feed::Content, and then add the additional trait body_alt.


Comment on Re^2: Moose? Add a new attribute to a XML::Feed::Content object?
Re^3: Moose? Add a new attribute to a XML::Feed::Content object?
by Your Mother (Canon) on Mar 28, 2011 at 16:32 UTC

    Monkey patch means extend/modify code while running / at run time. So the suggestion means, just add that code to your actual script/program and not your locally installed module. Looks like a good suggestion for the short term. Might submit a patch/ticket to the module to get the feature for real down the road.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2014-09-20 09:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (157 votes), past polls