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 ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Tuesday January 13, 2009
05:17 AM

Perl 6: .trim and

[ #38272 ]

My PIR patch (now with tests) implementing the .trim method has been applied. My first feature added to Perl6! I'm quite happy this. I was surprised to discover that it's much easier than I thought. Once I remembered how to "think" assembly, PIR was much easier to write.

There are a few other issues with it which need clearing up, including extra methods for trimming the beginning and end of the string, but that will have to wait as I'm busy the next couple of days. Well, that and the fact that no one seems to agree on the implementation.

Regrettably, my improvements will also have to wait. By making it more useful, I kept stumbling on various bugs in Rakudo. Still, Rakudo's getting there and is further along than many people suspect.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • … easier to write.

  • Ovid++

    Keep up them coming :) Once i finish sharpening Padre's Perl6 plug-in, i will certainly improve Padre's PIR completion with snippets...etc.

    • One day I'll get the tuits to figure out how to install it on OS X. Right now I can't without struggle, so I don't even try. That's been one of my biggest gripes about Perl in general. Since it doesn't ship with a built in GUI framework, it's almost always painful to figure out which one to use and how to install it. It probably shouldn't ship with a GUI framework, but better options than what we currently have would be welcome. I never did get Apple's wxPerl working with Padre.