around
DFA::Simple. http://use.perl.org/~Ovid/journal/22298). Once this
solution was in place, adding new rules was trivial, but DFA::Simple is
a curious beast and was causing us problems.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid
a class just for the returned
data, one call always use the excellent Hash::AsObject
(http://search.cpan.org/~nkuitse/Hash-AsObject-0.05/) module.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org
,
not the merits of sanity checking. If so, it just falls back to the
original author to decide.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http
Hi All,
By now, some of you may have been playing with FSA::Rules. I've added
GraphViz support to generate state machine graphs on the fly. And
example can be found at
http://users.easystreet.com/ovid/images/pg_rules.png
To do this, here's how a state is defined:
installed = {
do = sub
author is still finding the shebang line is wrong, I
would suggest either they ran Makefile.PL with the wrong Perl or there
is a bug in their ExtUtils::MakeMaker setup.
Does this answer the question?
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy
name? Is aliased better? Am I overlooking
anything?
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http://users.easystreet.com/ovid
--- Kurt Starsinic [EMAIL PROTECTED] wrote:
On Tue, 4 Jan 2005 12:49:16 -0800 (PST), Ovid
[EMAIL PROTECTED] wrote:
I'm about to release Aliased to the CPAN.
[ . . . . ]
Basically, when you have long package names, it can be cumbersome
to
retype the package name all the time
have a single import item, you can do
this:
use aka 'Really::Long::Module::Name' import = 'thingy';
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming
.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http://users.easystreet.com/ovid/cgi_course/
, so
I think this is good to go. I'll shoot another email to that list and
barring some last minute objection, I hope to have this uploaded
tomorrow.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http
get it wrong. In fact, I got it wrong until
Lincoln Stein pointed out my error :)
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl http
class methods
# on the alias:
my $new_name = Name-new;
my $old_name = Name-search($id); # etc.
Thanks for all of the suggestions.
Cheers,
Ovid
=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid http://www.perlmonks.org
how is this different from X. See
http://use.perl.org/~Ovid/journal/22615 for another example.
In this case, I am explicitly *not* aliasing typeglobs. I don't want
to mess with another namespace. Package::Alias won't alias over a
different namespace if you don't want it to (but you can force
on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
too many results:
http://search.cpan.org/search?query=${MODULE}mode=module
I really feel like I should know this (grr ...)
Cheers,
Ovid
=
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http
support what
Eric wants. There's been an awful lot of energy spent in this thread
over something which most don't see as an issue. I'm still trying to
figure out why it's carried on this long.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up
--- A. Pagaltzis [EMAIL PROTECTED] wrote:
I conversed with him using [EMAIL PROTECTED] a while back.
This is the address listed in his use.perl account, âdom2.â You
should have better luck there.
Thanks. Email sent.
Cheers,
Ovid
--
If this message is a response to a question
email address did you
use?
Try [EMAIL PROTECTED]
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
System named Kontent.
Where does he put it? On the CPAN? Not sure if that will fly. Yeah,
he can probably include it with Pugs, but it looks like we finally need
an answer to this.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions
resource, sooner or
later we need to get the CPAN/Perl6 thing squared aware.
Cheers,
Ovid
(sourceforget was a typo, but I liked it so much I left it. I
suspect I'm not the first to have this stroke of genius)
--
If this message is a response to a question on a mailing list, please send
follow up
--- Ovid [EMAIL PROTECTED] wrote:
It's the former. While sourceforget if a viable resource, sooner or
later we need to get the CPAN/Perl6 thing squared aware.
squared aware? What the hell is that?
*squared away*, damn it. *squared away*. Sheesh. Would someone
please come over and break
on (we hope.) Then at
least there's a chance of them figuring out how to resolve the problem.
So far, putting stuff in the indexer is the best idea I've heard.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web
module to the CPAN,
but I rewrite this code *all* the time (and always forget about die if
extra_keys()). Before I embarrass myself by writing and uploading
something so simple and special-purpose, tell me there's something out
there already ...
Cheers,
Ovid
--
If this message is a response
;
# ...
}
Yes, but you're altering the hash passed in by reference.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
people can take whatever action
they want? And list the offending data?
Yes, that thought had occurred to me, too, but only so long as it's
simple. I just want something that does this one thing well.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
not make it clear I can lock a non-existing key and
later assign a value. I suppose the docs *could* be read that way, but
if the docs explicitly said that the restricted keys may contain keys
not already present in the hash, I'd have understood.
Thanks!
Cheers,
Ovid
--
If this message
.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
useless for anyone else.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
--- Shlomi Fish [EMAIL PROTECTED] wrote:
2. Ovid - http://search.cpan.org/dist/Ovid/ - Slightly less updated
to handle
all the latest CPAN technologies (Module::*, ExtUtils::*, etc.). But
does recursion.
FYI: Just as POE has nothing to do with me (Curtis Poe), Ovid also
has nothing to do
are detailed in
http://perlmonks.org/index.pl?node_id=458282
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
already a module which does that or maybe it should do X
instead. Then that conversation would legitimately jump back here and
would eventually jump to the naming list ... over and over again. That
would be even more tedious (hard to believe, I know).
Cheers,
Ovid
--
If this message is a response
strict::can is a module which, if used, imports a can method into
your namespace. This version of can() will not report imported helper
functions or private methods. Full docs below.
Comments and suggestions welcome.
Cheers,
Ovid
--
NAME
strict::can - Make can() ignore private methods
whereby I was
exporting methods which should not have been exported. Also, if one is
routinely in the habit of checking class capabilities rather than class
types, this can be quite useful.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up
useful and safe as the nomenclature might suggest.
I agree that the name is ugly. I only used that after I saw Sean
Burke's strict::ModuleName.
Namespace suggestions are quite welcome.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up
, though. Class::Should? Ugh. That doesn't quite fit either.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid/cgi_course/
are interested, post it to the CPAN
and ask for feedback.
I'd also strongly recommend that you post this to Perlmonks. There are
one or two mathematicians running around there.
(Oh, and tell Wren I said hi :)
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
::CGI instances in case you're
working in a persistent environment and you don't want all of your code
to use the same handlers for the same parameters.
Comments, thoughts and suggestions are welcome.
Cheers,
Ovid
--
If this message is a response to a question on a mailing list, please send
://search.cpan.org/search?query=AI%3A%3APrologmode=all).
By the way, thanks for working on this. I appreciate it.
Cheers,
Ovid
-- If this message is a response to a question on a mailing list, please send
follow up questions to the list.
Web Programming with Perl -- http://users.easystreet.com/ovid
- Original Message
From: Ken Williams [EMAIL PROTECTED]
BTW, you might want to add a see also in the AI::Prolog docs for
the SWI-Prolog wrapper?
Probably a good idea. It's recommended in AI::Prolog::Article, but that's
about it.
Cheers,
Ovid
-- If this message is a response
to constantly upgrade and
maintain modules, but if it's something widely used and you don't have time for
it, isn't the responsible thing to find a way to get those bug fixes out there?
Cheers,
Ovid
-- Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid
- Original Message
From: Jonathan Rockway [EMAIL PROTECTED]
To: James E Keenan [EMAIL PROTECTED]
Cc: module-authors@perl.org; Ovid [EMAIL PROTECTED]
Sent: Tuesday, August 15, 2006 12:50:47 AM
Subject: Re: Give up your modules!
Is there software that needs to be written? I could
- Original Message
From: Gabor Szabo [EMAIL PROTECTED]
I guess such thing should be part of CPANTS.
++
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
this. Of course, you
could always just offer co-maintainership via PAUSE if you don't want to give
them up completely :)
I know some authors have had a lot of success with similar announcements on
Perlmonks or even use.perl.
Cheers,
Ovid
-- Buy the book -- http://www.oreilly.com/catalog/perlhks
language.
Heck, if I found out a C programmer hacked out a quick 50 line program to solve
a problem, should I just dismiss that program as a script?
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
to naming and shaming). That list should be left as a *private*
exercise for the reader.
Cheers,
Ovid
-todo_failed;
The above assumes that $load_parser and $lex_parser are parsers which have
already finished parsing. You can also look at the various tprove* files in
examples/ for more usage.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http
if there are any pitfalls here I should be aware of?
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
Hi Peter,
I know a David Shultz and I think he has an interest in that area. Whether
he's the same David, though, I've no idea. However, I just dropped him an
email and listed your name and email address in it.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl
it's worth. More than once I've begged people for
patches, only to be ignored. Plenty of other authors have had the same
experience. Maintaining modules can be frustrating.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid
will not be fixed.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
simply feared we'd have
another module go down in oblivion :)
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
::NowYouUnderstandWhyYouNeedToFixTheHorribleMethodNamesBeforeYouGoBlindYouSillyGit.
Others are free to steal that module name if I never get around to
writing it :)
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
is a
crime.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
Being an *extremely* political creature, I'm sorely tempted to wade
into this mess, but I won't. Can we just agree to stick to the
license's suitability for the CPAN?
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid
, what's your cross-platform way of figuring out the
full path to the svn executable? Just doing system('svn', 'info',
$uri) can get you an Insecure $ENV{PATH} (or something like that)
when running in taint mode.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl
$sep = $Config{path_sep};
join $sep, (
map { /(.*)/ }
grep { stat($_) !( stat($_)-mode S_IWOTH ) }
grep { file_name_is_absolute($_) }
split( /\Q$sep/, $ENV{PATH} ),
);
};
Cheers,
Ovid
--
Buy the book -- http
--- Ovid [EMAIL PROTECTED] wrote:
$ENV{PATH} = do {
my $sep = $Config{path_sep};
join $sep, (
map { /(.*)/ }
grep { stat($_) !( stat($_)-mode S_IWOTH ) }
grep { file_name_is_absolute($_) }
split( /\Q$sep/, $ENV
`. Better
just use a lexical variable.
Thanks for this and the other comments. Great points.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
reels. Jamie Zawicky started a night club and Randal Schwartz has DJd
at them. Many of us are members of the Perlmonks Monastery. I guess
we've all lost that abstraction layer ... :)
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com
--- Keith Ivey [EMAIL PROTECTED] wrote:
A. Pagaltzis wrote:
* Ovid [EMAIL PROTECTED] [2007-05-02 12:40]:
Jamie Zawicky
Zawinsky.
Zawinski, actually -- or is it Zawodny?
Nope. Aristotle's right. I definitely meant Zawinsky. He runs the
DNA Lounge (http://www.dnalounge.com
--- Keith Ivey [EMAIL PROTECTED] wrote:
Yeah, Zawodny was a joke. But JWZ is still Zawinski, not Zawinsky.
Gah. Kill me now, please.
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
not read the brilliant rebuttal to the Hackers
and Painters article:
http://www.idlewords.com/2005/04/dabblers_and_blowhards.htm
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
/cpan-faq.html#How_maintain_module), but Marcus has
been quite helpful in explaining that he doesn't have the time for this.
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
,
'Module::Signature' = 0.21,
'version' = 0.661,
},The Module::Build::Authoring docs specifically states that
this key is for versions of modules that are recommended to provide enhanced
functionality.
Cheers,
Ovid
licensing.
(This is not an invitation to defend ANY other license. I have too many things
to do and I don't want to be burdened with someone else's pet crusade)
Cheers,
Ovid
--
Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
and method signatures and this makes using it
with tests trivial. If it might impact the test code or you want to
minimize this risk then have the filtered code in t/lib or t/data and
have your test code 'use' it, thus ensuring a clean separation.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com
--- David Golden [EMAIL PROTECTED] wrote:
In Build.PL, add perl to the requires list.
In Makefile.PL, add require 5.008 to the top of the Makefile.PL
Out of curiosity, why is require 5.008 not a suitable option for
Build.PL? Does it track this as metadata and report on it?
Cheers,
Ovid
to worry about things. Later,
if you find your universe needs to calculate the value of pi
(presumably by making an RPC call to another universe), you still have
a nice method encapsulating this and don't have to change the public
interface.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com
,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
then. The downside
significantly less than I thought. Feel free to disregard a lot of
what I said :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog
--- Ovid [EMAIL PROTECTED] wrote:
I want a generic dataset reporting tool which allows
me to:
* Specify a raw attribute to be rendered
* Specify virtual attributes to be calculated
* Validates that added records match attributes
* Optionally accepts a TT template for custom
--- chromatic [EMAIL PROTECTED] wrote:
On Wednesday 19 September 2007 22:46:19 Ovid wrote:
This has happened a couple of times now. Why don't you use release
devel versions so that these issues become less serious in the
future?
In your experience, do devel versions get the kind
release
devel versions so that these issues become less serious in the future?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http
'. Would it be worth combining the two?
use My::Enterprise::Framework;
use relative -aliased = qw(Customer Report);
# instead of:
# my $customer = My::Enterprise::Framework::Customer-new($id);
# use:
my $customer = Customer-new($id);
http://search.cpan.org/dist/aliased/
Cheers,
Ovid
scoped, but I don't *think* there is
problem there.
Thanks for a nice module!
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http
.
#!/usr/bin/perl -l
use strict;
use warnings;
use Devel::BeginLift qw(require);
require Data::Dumper;
BEGIN {
no warnings 'once';
print $Data::Dumper::Indent;
}
Seems to have no impact on require at all. I suspect that's because
it's not a subroutine.
Cheers,
Ovid
BEGIN blocks really annoy the hell out of me at times :(
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
--- Eric Wilhelm [EMAIL PROTECTED] wrote:
http://search.cpan.org/~ewilhelm/lambda-v0.0.1/lib/lambda.pm
Combined with that vim shortcut, this is just too cool :)
I'd probably have put it in the Acme:: namespace, though.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog
--- Ovid [EMAIL PROTECTED] wrote:
Well, if you want to use it in your own code and your work's code,
that's fine (because I'm sure you find typing CONTROL-SHIFT-EL so
much
easier than sub {} :) but if it shows up in your CPAN modules, you
might get a few complaints since this sugar, while
--- Eric Wilhelm [EMAIL PROTECTED] wrote:
And why do we have an 'eq' operator instead of 'equals' ?
IMO, shortcuts for typing long things will lead us to Eclipse.
lambda - a shortcut for sub {...}
my $code = #955; {...}; # instead of sub {...}
;)
Cheers,
Ovid
--
Buy the book
database work, but I won't :)
Frankly, I'd suggest waiting a while before pulling the trigger and then if
nothing manifests (which I'm guessing it won't), then go ahead.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid
that he'd write it differently today), we're
largely stuck with it for legacy issues. Inertia is not the same
thing success.
Cheers,
Ovid
* I'm an ex-COBOL programmer and I know exactly what I'm talking about here.
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http
. Is there
a way to do this that I just haven't seen in the docs?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
--- jonasbn [EMAIL PROTECTED] wrote:
Hi Ovid,
We need what you describe, I really like the idea.
An alternative solution for now might be to stick the tar-ball in
your
mini-cpan mirror if you have one.
Actually, someone on Perlmonks just pointed me to a section of the docs
I missed
will properly configure
CPAN::Config to give us fine-grained control over all of this? Is
there something I've missed in the above?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius
-base'. There's some short term pain there, but in the
long run, it seems like a win.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI - http://users.easystreet.com/ovid/cgi_course/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http
reorganize all of our dependencies and hope that
nothing broke.
As note, we went with the reorganization, despite other useful
suggestions from here. Going the 'INSTALL_BASE' route was a one-time
pain (we hope :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Perl and CGI
sufficient permissions, etc.
Might take a bit of getting used to, but it's pretty damned powerful.
You can see an example of a graphed version of that state machine in
Theory's journal:
http://justatheory.com/computers/programming/perl/fsa_rules_graph_improved.html
Cheers,
Ovid
--
Buy the book - http
--- David Nicol [EMAIL PROTECTED] wrote:
Armstrong: Hexten, London.
Actually, Cumbria, just south of Scotland. Not London :)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org
::Most plan = 3, '+set';
Are there better strategies?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http://use.perl.org/~Ovid/journal/
--- Ovid [EMAIL PROTECTED] wrote:
I'm trying to think of the best way to deal with this. My first
thought is to create a drop in replacement for Exporter which will
not
export a function if caller-can($function) *unless* the person
explicitly lists it in the import list with a unary plus
). Though I'm rather interested in this
take on the idea.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog- http://publius-ovidius.livejournal.com/
Tech blog- http://use.perl.org/~Ovid/journal/
Official Perl 6 Wiki - http
about
B::svref_2object call let alone the REFCNT parameter.
++
The B modules are incredibly powerful, poorly documented pieces of crap. They
may be great, but without documentation on how to use that speedboat, it's so
much scrap metal.
Cheers,
Ovid
--
Buy the book - http
I'd vote for the wrapper.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
--- On Sat, 19/7/08, Bill Ward [EMAIL PROTECTED] wrote:
I can't think of any reason you would want to use an
imported subroutine as an object method.
Class::Trait
Moose::Role
mixin
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http
, they're a nightmare for EMM[2]
This has now led to others building competing systems which support different
features and people are falling back to EMM as safe, but if I have complex
build needs, it's anything but :(
Cheers,
Ovid
1. 'PREFIX', for example, has been the bane of many developers who
no_plan = 1;
I've recommended that we warn instead of croak as I don't know how widespread
this problem is (I'd just fix it, but I don't have external Subversion access
at work).
I expect we'll fix this, but for the time being, please don't use 'no_plan =
$plan' in your tests.
Cheers,
Ovid
--
Buy
I'm sure I'll add more later, but for now, I've just uploaded Class::Sniff to
the CPAN and it's also on github
(http://github.com/Ovid/class--sniff/tree/master).
If anyone wants to bang on it, that would be great. I'd be interested to know
if it works on 'real' code :)
my $sniff = Class
heavyweight at times, really.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
and have fewer gotchas.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
1 - 100 of 125 matches
Mail list logo