in reply to Re: regular expression assistance
in thread regular expression assistance

I'm sorry. I mean that the following is not working with the perl interpreter we have on the laptop...

use Regexp::Common qw /net/;

perhaps I have it wrong?

Replies are listed 'Best First'.
Re^3: regular expression assistance
by ww (Archbishop) on May 09, 2008 at 21:53 UTC
    In that case, see Fletch's answer.

    Since I gather from your prior thread that getting access to the laptops may be awkward, consider his cut'n'paste suggestion.

      Here is the error I receive when I attempt to use Regexp::Common.

      Can't locate Regexp/Common.pm in @INC (@INC contains: C:/Program Files/Rational/ Common/lib/perl5/5.8.6/MSWin32-x86-multi-thread C:/Program Files/Rational/Common /lib/perl5/5.8.6 C:/Program Files/Rational/Common/lib/perl5 C:/Program Files/Rat ional/Common/lib/perl5/site_perl/5.8.6/MSWin32-x86-multi-thread C:/Program Files /Rational/Common/lib/perl5/site_perl/5.8.6 C:/Program Files/Rational/Common/lib/ perl5/site_perl C:/Program Files/Rational/Common/lib/perl5/site_perl/5.8.6/MSWin 32-x86-multi-thread C:/Program Files/Rational/Common/lib/perl5/site_perl/5.8.6 C :/Program Files/Rational/Common/lib/perl5/site_perl .) at vmHostsUpdater.pl line 28.
        In other words, Regex::Common is not installed.

        Since you're on windows, this should install it:

        ppm install Regexp-Common

          ...though with the latest ppm you may need to use a hyphen instead of the double-colon.

        And while you're at it, you should consider updating Perl itself, at least to 5.8.8 or maybe to 5.10.