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

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.
  • So you're tagging the content with XML? You didn't seem to hoist the rest of the document into XML though.
    • I misunderstood. Whoops. Here's how I'd use this: with Term::ANSIColor.

      use Term::ANSIColor 'color';
      my $diff = String::Diff::diff('this is Perl', 'this is Ruby',{
            remove_open => color( 'bold red' ),
            remove_close => color( 'reset' ),
            append_open => color( 'bold green' ),
            append_close => color( 'reset' ),