I am following the book "Real World SQL Server Administration with Perl" by Linchi Shea. He has used 5.6.1 from ActiveState.com; Current / latest version available is ActivePerl-5.12.2.1202-MSWin32-x64-293621.msi for 64 bit and i installed it. perl -v showed the verion correctly. Many of the simple scripts run but when i try to run one of the scripts it is giving error regarding ParserSQL.pm; I invoked ppm and installed all the packages and a search after installing does not show any P*SQL.pm;

The error i am getting is:

Can't locate SQLDBA/PerseSQL.pm in @INC (@INC contains C:/Perl64/site/lib C:/Perl64/site/lib C:/Perl64/lib .) at .\reviewSP.pl line 5. BEGIN failed--compilation aborted at .\reviewSP.pl line 5.

The first few lines of reviewSP.pl are as follows:

# See the embedded POD or the HTML documentation use strict; use Data::Dumper; use SQLDBA::ParseSQL qw( dbaNormalizeSQL dbaSplitBatch ); Main: { my $dir = shift or die "***Err: $0 expects a directory name."; (-d $dir) or die "***Err: directory $dir does not exist.\n"; # read the file names in the directory opendir(DIR, $dir) or die "could not open $dir.\n"; my @fileNames = map { "$dir\\$_" } grep {!/^\.\.?/} readdir(DIR); closedir(DIR); my $counterRef;
I am newbie to PERL and any help would be appreciated. Thanks in Advance.

In reply to SQL Server parser by adhocusage

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.