user-pic

E. Choroba

  • Commented on Specify the min perl version for your distribution
    If you are too lazy to remember or look up what Perl version supports // and \p{Unicode}, you might like Syntax::Construct....
  • Commented on Inheritance is Bad: Code Reuse Part II
    _you need to change the behaviour from Destroyable to DestroyableResitances at runtime just for a specific object_ Roles can be applied to an instance. See "Applying Roles" in Moose::Role....
  • Commented on Warning: perlsphere.net has been hacked
    Firefox doesn't warn yet. Oops, I tried - I'll lose my identity, money and files!...
  • Commented on Do not use each
    Sorry, should have been: perl -E 'for my $x (qw(* < >)) { print "$x: ", scalar glob($x), "\n"}'...
  • Commented on Do not use each
    Unfortunately, glob is similarly broken: perl -E 'for my $x (qw(* )) { print "$x: ", scalar glob($x), "\n"}'...
  • Commented on Meta-testing
    Here you go. Created with TrEd ([http://ufal.mff.cuni.cz/tred]), written in Perl. http://i193.photobucket.com/albums/z176/echoroba/out.jpg?t=1399928650...
  • Commented on Make Your Live Demo Flawless!
    I recently wrote a script to simulate two users committing to a git repository - we wanted to test different strategies using "git rebase". https://www.youtube.com/watch?v=wY3ktKGforQ Looks pretty similar!...
  • Commented on Is that an Int?
    Using \D can be dangerous in the unicode world: use utf8; print "໖" =~ /\d/;...
  • Commented on Plz recommend an in-browser irc client
    kiwiirc.com...
  • Commented on I want mop rest capability to define fast accessor
    In case of inside-out objects, $self->x is not the same as $self->{x}, but rather something like $register->{x}{refaddr $self}....
  • Commented on Games in Perl/Tk
    Hopefully fixed in the new version....
  • Commented on Games in Perl/Tk
    I wrote a Perl/Tk multiplayer game years ago. It still has a bug: buffering issues with sockets. It should not be so hard to fix it, though :-) http://sourceforge.net/projects/chalaxy/?source=directory...
  • Commented on New, experimental screencasts
    Linux (openSUSE 12.2), Firefox 22.0....
  • Commented on Thank you Ack!
    BTW, XeTeX uses UTF-8 source files (probably not relevant to your thesis :-)....
  • Commented on New, experimental screencasts
    I can see the player, but after clicking on "Play", I get Can't play video Media source loading has failed. What's wrong with old plain YouTube? :-)...
  • Commented on PPI highlighted Mojolicious "quine"
    Oops. Just put this on one line: $a=q!print '$a=q'.$a.';';$a=~s/\x2a/\x21/g;print $a;!; print '$a=q!'.$a.'!;'; $a=~s/\x2a/\x21/g; print $a;...
  • Commented on PPI highlighted Mojolicious "quine"
    Just a note: For a program to be a quine, it should accept no input. Reading its own source code disqualifies your examples as quines. This is a Perl quine, though: $a=q!print '$a=q*'.$a.'*;';$a=~s/\x2a/\x21/g;print $a;!;print '$a=q!'.$a.'!;';$a=~s/\x2a/\x21/g;print $a;...
  • Commented on Be Careful With state Variables
    Yes, state variables are not as magical as one might hope: FILE: while (1) { state $first_file; LINE: while (<>) { state $first_line; say 'First file' if not $first_file++; say 'First line' if not $first_line++; # WRONG } }...
Subscribe to feed Recent Actions from E. Choroba

Subscribe to feed Responses to Comments from E. Choroba

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.