NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
innovative (Score:1)
I wish for customizing the name of "$self", but this is a nice start, and a welcome competitor to "self.pm", which I also liked it was a little weird because it was "self", not "$self", and didn't actually allow you to "shift" off $self through the system, just reference it.
Wow, that was a run-on sentence.
Mark
Re:innovative (Score:1)
Reply to This
Parent
Re: sefvars.pm (Score:1)
I wonder if it used "Sub::Exporter", if the "self" scalar name could be easily customized, like it can for "self.pm". However, I don't see any examples in the Sub::Exporter docs of exporting scalars. (Perhaps only because it is recommended against in most cases).
Re: (Score:1)
You can customize the "self" scalar name with an import line:
Or only import self as $this but not args:
Or only import self as $self:
More suggestions are welcome as well!
Re: (Score:1)
Re: (Score:2)
Then again, I've found some fascinating bugs in Method::Signatures.
Re: (Score:1)
Re: (Score:2)
Re: (Score:1)
Re: (Score:1)
If so, how about making available a %opts so you can say:
If you wish you can even import selfvars like this, populating named options into %_:
Would that resemble what you want?
Re: (Score:1)