Stories
Slash Boxes
Comments
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)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
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)

Wednesday July 26, 2006
04:37 AM

The SQL Stripper

[ #30431 ]

You know, some days your module names just ain't gonna work. I needed to write a simple utility which would take a string of multiple SQL statements, strip out comments and also split it into individual statements. After struggling to come up with an appropriate module name, I finally started writing my tests. That's when I realized what a very, very bad choice I had made:

#!/usr/bin/perl

use strict;
use warnings;

use Test::More qw<no_plan>;

my $STRIPPER;
BEGIN {
    $STRIPPER = 'SQL::Stripper';
    use_ok $STRIPPER or die;
}

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.