Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^2: annotation, derivation

by hv (Parson)
on Feb 17, 2012 at 14:04 UTC ( #954538=note: print w/replies, xml ) Need Help??


in reply to Re: annotation, derivation
in thread annotation, derivation

Cool, that looks very much like what I hoped for, I'll have to have a play to see if I can find a sensible way to record and expose the locations and stacktraces at which the calculations occur.

Getting the information to survive across transitions to string and back may be harder: in fact, I suspect sensible string support will generally be rather harder (eg to extract the interesting information from something like $string = join ', ', @substrings).

I wouldn't have gone for an lvalue derivation(), but I think that's more an issue of personal style.

Thanks,

Hugo

Replies are listed 'Best First'.
Re^3: annotation, derivation
by tobyink (Abbot) on Feb 17, 2012 at 14:16 UTC

    Object::Stash is written in such a way that, the accessors can be used as lvalues, or getter/setters:

    $quux->derivation = 'x'; $quux->derivation('x');

    ... are both equivalent.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954538]
help
Chatterbox?
[cbeckley]: I have a functioning module I use to spawn sets of commands across multiple servers.
[cbeckley]: It's nascent, and probably looks like baby Perl to the veterans.
[cbeckley]: I have several questions about it's future development. But it seems like a lot of code to put in a sopw.
[cbeckley]: Should I put the module and example calling code in cufp, and then ask questions in sopw?
[haukex]: You can put it in SOPW, but use <readmore> tags
[haukex]: Also you might want to label it "code review"

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-03-24 15:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (304 votes). Check out past polls.