user-pic

nickl

  • Commented on Debuging method for perl Complex data structures
    If you have complex structures to debug Data::Dumper::Concise can be good. http://search.cpan.org/~frew/Data-Dumper-Concise-2.020/lib/Data/Dumper/Concise.pm...
  • Commented on POD Web View
    Nice! One suggestion, for people with wide monitors it would be nice to increase/remove the CSS max-width constraint on the container that holds the input/output panels? E.g. .container { max-width: none; }...
  • Commented on JQuery and Moose
    I haven't read the book, but in the synopsis it states that JQuery is a "JavaScript library" - I would agree with this, it's a library not a framework. You seem to be thinking about it as if it is...
  • Commented on Counter-productive over time
    SawyerX, I'm curious if you have some real-world examples of projects that illustrate why the no-deps approach is bad in practice? For me Mojolicious wouldn't fit in this category because the end product is actually very good and I'm a...
  • Commented on A Porter's Tale
    Interesting thanks. Having identified the kind of changes that were needed, we're you able to automate any of it? If so I'd be curious to know what approach you took....
  • Commented on Perl5 in the browser update
    Interesting thanks. Can I ask, what's your motivation for having Perl in the browser?...
  • Commented on Cpan Module not installing properly
    I'm having the same problem here, with a previously working setup....
  • Commented on Validation::Class, Mojolicious::Lite and HTML5 Form Field Rendering
    Nice work Al. I plan to try this out soon....
  • Commented on Validation::Class - Completely Rewritten
    I like the look of this, thanks!...
  • Commented on Introducing metacpan.org - A better search for the CPAN
    Good stuff, I can see a lot of work has gone into it. I really like it - particularly the new source view features. One visual cue I might miss from search.cpan is the boxes around the code snippets. Also,...
  • Commented on Heads Up: Functions in CSS
    There's also a Perl based parser for .less files on CPAN (though I haven't tried it) http://search.cpan.org/~drinchev/CSS-LESSp-0.86/lib/CSS/LESSp.pm...
  • Commented on Yet Another Dancer Site
    An interesting post, thanks. And congrats on the site launch!...
  • Commented on An amazing Javascript graphics package: Protovis
    I couldn't find any documentation on which browsers are officially supported, and admittedly I havent done much investigation, but none of the examples work in IE8, and the link I posted *suggests* that IE is not officially supported....
  • Commented on An amazing Javascript graphics package: Protovis
    Looks really nice, but its a shame it doesn't support IE - makes it difficult to recommend for a production environment. That said, it sounds like IE support might be possible with some 3rd party scripts and some extra effort...
  • Commented on Perl101: Red to Green Gradient
    oops the previous comment should have this link: http://stackoverflow.com/questions/2593832/how-to-interpolate-hue-values-in-hsv-colour-space (I can't see how to edit it though)...
  • Commented on Perl101: Red to Green Gradient
    I had to do this a while back. I ended up with a short javascript function which creates a gradient for any number of colours by doing linear interpolation of the HSV values: http://stackoverflow.com/questions/3997241/do-all-my-moose-classes-have-to-contain-namespaceautoclean-and-make-immutabl...
  • Commented on Why so puzzled?
    Lightwieght frameworks like Dancer and Mojolicious make things a little easier than they were. The perl shared hosting site is a nice idea too, but seems to have lost momentum....
Subscribe to feed Recent Actions from nickl

  • quantum.mechanic.1964 commented on Debuging method for perl Complex data structures

    I need to examine deep, complex objects in debug every day, so I came up with my_dumper. It takes a name string, and a ref, and has some additional options, such as to limit depth.

    You can also see the Doxygen that goes with it.

    (Apologies for not figuring out the syntax highlighting markup needed for this site. Seems it's not important enough to link to?)

    # @function my_dumper()
    # Print out an object or data structure to STDERR.
    # Sleeps proportional to object size, to avoid interlaced messages from other STDERR writes.
    #
    # Usage:
    #
    # my_dumper( …
  • quantum.mechanic.1964 commented on Debuging method for perl Complex data structures

    Are any of my comments getting through? There's no indication, just a new blank comment field. (At least it's not saying I have to logout and back in again because my session timed out.)

  • educated_foo commented on Debuging method for perl Complex data structures

    Getting any text posted here is a minor achievement. I think you can do syntax highlighting by using both "code" and "pre" tags, but checking this by using "preview" would probably either not work or log me out. People have also embedded iframes to other sites to do syntax highlighting. (And yes, my session had expired when I tried to post this. This site is pathetic.)

  • Ross Attrill commented on Debuging method for perl Complex data structures

    I have been using


    use Data::Dump qw(dump);

    and finding it to be excellent in most circumstances.

  • chimerix commented on Debuging method for perl Complex data structures

    I never use Data::Dumper. Depending on circumstances, I use Data::Printer or Data::Dump.

    FYI Ross, Data::Dump exports 'dd' by default which is easier to remember and type and also avoids accidental coredumps if you forget to explicitly import 'dump'.

Subscribe to feed Responses to Comments from nickl

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.