Slash Boxes
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

use Perl Log In

Log In

[ Create a new account ]

melo (332)

  (email not shown publicly)

Perl dude since 91' or 92' (can't remember, really).
+ -

  Comment: About the compile time thing (Score 1) on 2010.08.03 3:04

by melo on 2010.08.03 3:04 (#72230)
Attached to: Protesting the Moose with sugary alternatives

I wonder if the newly released Devel::BeginLift is a way to solve the problem.

I like your MooseX::Atom, but I rather see the problems you mentioned solved without having to rewrite all of my Moose code.

Read More 17 comments
Comments: 17
+ -

  Comment: Devel::REPL (Score 1) on 2010.01.22 5:44

Perl::Shell is a minimalist module and as such it would be easier to support and maintain, but I've been using Devel::REPL with great success as my command line perl.

Read More 13 comments
Comments: 13
+ -

  Comment: Dist::Zilla (Score 1) on 2010.01.12 2:58

by melo on 2010.01.12 2:58 (#71520)
Attached to: Great Perl Code

I like Dist::Zilla.

The plugin system is very nice.

Read More 4 comments
Comments: 4
+ -

  Comment: Mac::Carbon and Snow Leopard (Score 1) on 2009.09.26 10:43

by melo on 2009.09.26 10:43 (#70673)
Attached to: Why I'm Switching to 5.10


the main reason that makes Mac::Carbon not compatible with perl5.10 in Snow Leopard is that perl is compiled as mixed 64bit/32bit and Carbon is a 32bit only API.

If you compile perl5.10 32 bit only, Mac::Carbon should install just fine.

Read More 3 comments
Comments: 3
+ -

  Comment: Have you looked at nested sets? (Score 1) on 2009.08.15 3:14

Depending on the size of the tree, I've found that the nested sets representation is very nice for queries.

The query that you need is given as an example in this page:

(Although this is a site, there is nothing MySQL specific with the solution)

The problem with nested sets is updates: they might change a large number of records - worst case, inserting a new node at the left-most place will update all the rows.

But smaller trees, they work very very well.

Read More 15 comments
Comments: 15
+ -

  Comment: Unauthorized release (Score 1) on 2009.08.07 4:58

by melo on 2009.08.07 4:58 (#69907)
Attached to: Perl 5.10.1 RC1 released

This page:

shows all files as unauthorized release in big red letters. It might scare people away...

Read More 5 comments
Comments: 5
+ -

  Comment: Re:Really? (Score 1) on 2009.07.30 6:47

by melo on 2009.07.30 6:47 (#69780)
Attached to: Mojolicious::Lite

BTW. I use both and will keep using both, but I strongly prefer Mojolicious dispatcher and routes system.

But, yes, I would much prefer have it all based on Moose.

As for the other complaints, you hit and miss on them. The Mojo HTTP framework is MUCH better than any other on CPAN, from a spec-compliance point of view. Maybe thats not something that yo care about, thats ok, but it is a fact.

Read More 29 comments
Comments: 29
+ -

  Comment: Re:More Sinatra's offsprings in Perl? (Score 1) on 2009.07.30 6:41

by melo on 2009.07.30 6:41 (#69779)
Attached to: Mojolicious::Lite

Actually they did know about Dancer.

After the Dancer release to github, vti wrote a dancer clone using Mojo. Eventually he re-wrote it using Mojolicious, and that was the spark that ignited Mojolicious::Lite development.

Best regards,

Read More 29 comments
Comments: 29
+ -

  Comment: Correct behavior (Score 1) on 2009.01.31 12:41

by melo on 2009.01.31 12:41 (#67144)
Attached to: Class::C3 Wierdness?


According to Class::C3 docs, the C3 algorithm only guarantees that no class Parent will be called before Child.

In your case, when he gets to '4', he can call '5' because '6' is not a subclass of '5'.

If you add Five to the @Six::ISA, then you would see the behavior that you are expecting.

Best regards,

Read More 2 comments
Comments: 2
+ -

  Comment: Class::C3 is your friend... (Score 1) on 2009.01.30 14:16

by melo on 2009.01.30 14:16 (#67123)
Attached to: Graphing the hierarchy (you won't believe this)

There is a script in the Class::C3 distribution that does this and much more.

My tweaked version of it is here:

The original is here:

Best regards,

Read More 7 comments
Comments: 7
+ -

  Comment: I don't get it... (Score 1) on 2009.01.02 6:45

by melo on 2009.01.02 6:45 (#66703)
Attached to: List of Directories Containing XML Docs

If you are using perl in that pipe, why not just use perl?

perl -MFile::Find -e 'find(sub { return unless /[.]xml$/; print "$File::Find::dir\n"}, @ARGV)' .

Best regards,

Read More 8 comments
Comments: 8