Thanks very much - this works
Jon
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
I would like to execute the following regex on a file:
s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+=> ")(.+?)
(")/$1$2$3Revision $2$5/gs
I am doing this in bash as follows:
REGEX='s/(\$Revision:\s+)(\d+\.\d+)(\s+\$.+use constant VERSION\s+=> ")
(.+?)(")/$1$2$3Revision $2$5/gs'
REG
Not strictly a perl question, but on the off-chance someone else has
come across this problem...
I am trying to compile perl 5.8.8 on Intel Solaris 10 with the gcc
that comes with the base install. When I run Configure Dcc=gcc and
select all the defaults, I get the following problem:
Checking yo
I'm sorry you felt the need to reply to this thread - I don't see what
it has to do with PAR.
Anyway, I got around my problem by using zip instead of pp:
bash-2.05# zip MetaMonPhaseOne.par MetaMon/PhaseOne.pm MetaMon/
PhaseOne/*
adding: mydir/PhaseOne.pm (deflated 84%)
adding: mydir/PhaseOne/
Sorry I'm making a terrible mess of this - the same applies even when
I spell the module correctly i.e. SetSQL:
bash-2.05# /usr/local/bin/perl -e 'use PAR;use lib q(a.par); use
SetSQL'
Parameter to use lib must be directory, not file at -e line 1
Can't locate SetSQL.pm in @INC (@INC contains: a.pa
There must be something else obvious that I'm missing:
bash-2.05# /usr/local/bin/perl -e "use PAR; use lib q(a.par); use
SetSql" Parameter to use lib must be directory, not file at -e
line 1
Can't locate SetSql.pm in @INC (@INC contains: a.par CODE(0x817d8f0) /
usr/local/lib/perl5/5.8.8/i86p
I run the following which produces an a.par file:
pp -p -n DateGen.pm JythonFeeder.pm MetaMonConfigLoader.pm
MetaMonSshConn.pm SetSQL.pm SshConn.pm
I move the a.par file to a different directory and check its content:
bash-2.05# unzip -l a.par
Archive: a.par
LengthDateTimeName
---