[sf-perl] Perltidy, etc. and PL/Perl

David Fetter david at fetter.org
Wed Aug 23 14:06:16 PDT 2006

On Wed, Aug 23, 2006 at 10:00:35AM -0700, Rich Morin wrote:
> At 9:42 AM -0700 8/23/06, David Fetter wrote:
> > Because it doesn't live in files, really.  It lives in strings in
> > the database.  There's nothing with a shebang line.
> It shouldn't be all that hard (he said :-) to extract the code from
> the DB and package them up to look like scripts.  Am I missing
> something?

Hrm.  It seems to me that it's me who's missing something, that being
a tool to do this.  It shouldn't be too tricky, but it may be a little

> > Can Perl::Critic operate on PL/Perl code?
> Well, it looks mostly at syntax (AFAIK), so "code is code" for its
> purposes.

There are some functions in PL/Perl which don't exist elsewhere.  I
suppose Perl::Critic would just operate on those the way it would on
something whose .pm's it couldn't find. :)

> What I would do, really, is dump out a sampling of the DBI-Link code
> (in whatever manner), then hand-edit it and feed it to the
> aforementioned programs.  Once you get it to the point that it is
> dealing properly with syntax issues, you can mechanize the process.

Fortunately, this is fairly straight-forward.  Thanks for the tip :)

> > TIA for any hints, tips or pointers :)
> This is Perl; we ain't got no steeenking pointers.

Meh.  Instead, we have references.  They may be an improvement.

David Fetter <david at fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

More information about the SanFrancisco-pm mailing list