mirod
- Website: mirod.org
- About: Perl and XML and stuff
Recent Actions
-
Commented on CPANdeps now understands META.json files
I was just looking into the whole (MY)?META.(json|yml) thingie, and I haven't found a single clear explanation of what I should do as a module author, especially when using ExtUtils::MakeMaker. AFAICT Makefile.PL generates MYMETA.(json|yml), but does not use META_MERGE. That's...
-
Commented on Perl module ideas #1
For Org::Parser, could you use XML::XPathEngine or Tree::XPathEngine to add XPath support? I see that elements have parents, children and siblings, so it shouldn't be to difficult to make then look like DOM nodes. Making the document itself behave as...
-
Commented on YAML vs INI (Again) and the plan for yet another INI module
For me the one thing all formats beyong pure Perl code are missing is the ability to define variables: $WEB_ROOT= '/var/www'; $CSS= "$WEB_ROOT/styles"; Whether it's INI, JSON or YAML, I haven't found a way to do this properly. I actually...
-
Commented on Help us spruce up WhiteCamel.org
try this: http://www.flickr.com/photos/mirod/6055874993/...
-
Commented on Ch-ch-ch-ch-changes
@rjbs: do we get auto-dereferencing in all cases? From what I have read it's done for some constructs, indeed like push, but AFAICT it doesn't happen everywhere you can have an array (map/grep, foreach...). I would love to be wrong...
-
Commented on Ch-ch-ch-ch-changes
1) auto-dereferencing, like push $array_ref, $foo, I hate having to write @{$h->{$key}}, 2) a simple way to make method calls on undef not die, sometimes when I write $element->firstchild( 'title')->nextsibling( 'p') I'd like to not die if there is no...
-
Commented on What should be core in Perl 5.16?
There seems to be roughly 2 categories here: - people who use Perl primarily on their system(s), or at least on systems they have control over. Those people want a minimal Perl, and a way to install extra modules, CPAN(PLUS|MINUS)?....
-
Commented on Random Contest & Event Ideas
What do you mean, "no cool tee-shirts"?: XML, The Perl Way. Now I just have to work on the other (pretty good) 16 bullet points....
-
Commented on My continuing dream of a Perl XML(::Twig) cookbook
So in 5 comments we already have 5 different modules being mentioned! I think then a good first step would be to create a list of tasks to perform, if possible representative of real-world problems, interesting and/or tricky. Then we...
-
Commented on My continuing dream of a Perl XML(::Twig) cookbook
Mike: Most XML modules let you use XPath, either natively or with an XPath add-on: XML::LibXML, XML::Twig::XPath, XML::DOM::XPath... XML::XPath is not maintained (look at the RT queue) and I wouldn't advocate using it....
-
Posted Perl 6 : the language that is easier to read than to write to mirod
As I was sitting in Jonathan Worthington's talk about Perl 6 signatures this morning, it struck me how easy it was to read the code he was showing. The intent was always very clear, it was short and to the point, and just made sense.
But then I looked closer, and there were a lot of sigil…
-
Commented on For speakers at Perl conferences...
Any recommendations for Linux by any chance?...
-
Commented on Projects that should have their own websites
If you mean that people who offer freely code, docs, tutorials, articles... to the community, should also pay to have a professional looking website, then that doesn't sound quite reasonable to me. If you're talking about getting some of the...
-
Commented on More bash completion help for perldoc
Brilliant. Thanks to both you and Yannick....
-
Posted xml_grep2 to mirod
A new version of
xml_grep2, packaged asApp::xml_grep2is coming to a CPAN near you. This time with extra goodness: the--XLoption, which usesXML::Liberalto parse…
Comment Threads
-
stevenharyanto.myopenid.com commented on
Perl module ideas #1
@mirod: Thanks for the suggestion. I am more biased towards CSS-selector style, but I will look into XPathEngine.
@shawnhcorey: I believe in the "Release early, release often" mantra :)
@SawyerX: Hi Sawyer! Unfortunately I myself cannot participate at the moment.
-
Steven Haryanto commented on
YAML vs INI (Again) and the plan for yet another INI module
@Joel: Depends on who the users are :)
-
Ben Bullock commented on
CPANdeps now understands META.json files
Have you tried "make dist"?AFAICT Makefile.PL generates MYMETA.(json|yml), but does not use META_MERGE.
Makefile.PL uses META_MERGE. For example,https://metacpan.org/source/BKB/Lingua-JA-Name-Splitter-0.02/Makefile.PL
Notice now the links on the left…
-
Leon Timmermans commented on
CPANdeps now understands META.json files
For some reason, the format used by Makefile.PL's META_MERGE is the one in the above file, not the one given in CPAN::Meta::Spec.
That's for hysterical raisins. META_MERGE follows the Meta spec 1.x, not 2.0 (a.k.a CPAN::Meta::Spec).
-
David Cantrell commented on
CPANdeps now understands META.json files
I updated it to continue to use YAML to read META.yml, but to also use JSON to read META.json. Anything else would be, frankly, crazy. And the code is horrible enough already without adding an extra dose of lunacy.
As an author, you don't need to think about this stuff much - just use ExtUtils::MakeMaker as normal and it will Do The Right Thing. It's only people working on the toolchain and CPAN infrastructurey stuff that need to care.
About blogs.perl.org
blogs.perl.org is a common blogging platform for the Perl community. Written in Perl and offering the modern features you’ve come to expect in blog platforms, the site is run by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.