user-pic

Ron Savage

  • Website: savage.net.au/
  • About: I try to write all code in Perl, but find I end up writing in bash, CSS, HTML, JS, and SQL, and doing database design, just to get anything done...
Subscribe to feed Recent Actions from Ron Savage

  • Neil Bowers commented on The Perl QA Hackathon 2015

    There's a paypal button now!

  • emailmarkyj commented on Mojolicious: Do It For The Candy!

    Hi Joel,

    I’m just getting my head around Mojolicious and found your posts really helpful. One thing I found in the test for the websocket script was that I had to change line 32 from:

    $row = Mojo::DOM->new($html)->find(‘tr td’)->text;

    to

    @row = Mojo::DOM->new($html)->find(‘tr td’)->map(‘text’)->each;

    Otherwise I got the following error: Can’t locate object method “text” via package “Mojo::Collection”. I’m not quite sure why I was getting the error, surely the method would b…

  • welcome.mahesh commented on A Simple Mojolicious/DBI Example

    Wonderful. I am looking for Mojolicious Application Example to understand it. This is so helpful :)

    Thanks to aristotle for his very very valuable points for a new bie.

  • Gábor Szabó - גאבור סבו commented on Semantic POD

    I have not given a lot of thought to actual tags, implementation, and compatibility, but pod could declare its version number and there could be an official parser included in the core.

    In any case, I am not planning to do any implementation. I'll stick to talking (or writing) about stuff. So if anyone else feels that this is a worthy and fun project, I won't stand in their way.

  • Henryk Paluch commented on A Simple Mojolicious/DBI Example

    Hello!

    For Unicode support there are few fixes needed:

    Add:

    use Encode;
    plugin Charset => {charset => 'utf-8'};
    

    modify / method to:

    any '/' => sub {
      my $self = shift;
      my $rows = $self->select;
      # convert utf-8 octets -> unicode
      for my $Item ( @{ $rows } ){
          map { $_ = decode('utf-8',$_) } @{ $Item };
      }
      $self->stash( rows => $rows );
      $self->render('index');
    };
    

    Best regards

     —Henryk Paluch

Subscribe to feed Responses to Comments from Ron Savage

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 hosted by Dave Cross and Aaron Crane, with a design donated by Six Apart, Ltd.