Re: search replace one liner problem

2007-10-09 Thread jrpfinch
Thanks very much - this works Jon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

search replace one liner problem

2007-09-17 Thread jrpfinch
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

gcc compiling perl on solaris

2007-08-07 Thread jrpfinch
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

Not up to PAR

2007-06-05 Thread jrpfinch
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/

Re: Not up to PAR

2007-06-05 Thread jrpfinch
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

Re: Not up to PAR

2007-06-05 Thread jrpfinch
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

Not up to PAR

2007-06-04 Thread jrpfinch
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 ---