Re: Distributing compiled C library generated by inline

2006-02-28 Thread Sisyphus
- Original Message - From: Foo Ji-Haw . . The Solution: 1. Read up on Question 3 on the FAQ. Following steps 1+2+3. 2. Within the 'use Inline' config hash, add the following parameter: CLEAN_AFTER_BUILD= 0 This is an important line. 3. Write a simple piece of code that will

RE: I need your opinion: perl vs php

2006-02-28 Thread Bruno Georges
Jaime, Pardon me if this is out of the scope of your request , but having used PHP, Perl , Java , C and Ruby for Web projects, when dealing with heavy DB accesses, I would consider using Java. Jboss[or Tomcat] comes to mind, it is also in line with your Opensource strategy. Security wise you

How to best replace one string with another in a text file

2006-02-28 Thread Paul Rousseau
Hello, I want to open a text file, look for a specific string, replace it with a new string, and write the line out to another file. For lines not containing the specific string, I want to write out as is. I was wondering if it is possible to do it with a map or splice or grep command

Document flow

2006-02-28 Thread Alejandro Santillan Iturres
Anyone know about a perl module for document flow management? Tks Alejandro ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: How to best replace one string with another in a text file

2006-02-28 Thread Wagner, David --- Senior Programmer Analyst --- WGO
[EMAIL PROTECTED] wrote: Hello, I want to open a text file, look for a specific string, replace it with a new string, and write the line out to another file. For lines not containing the specific string, I want to write out as is. I was wondering if it is possible to do it with a map or

Re: Document flow

2006-02-28 Thread Johan Lindstrom
At 19:31 2006-02-28, Alejandro Santillan Iturres wrote: Anyone know about a perl module for document flow management? Not sure what you mean by _document_ flow, but perhaps this? http://search.cpan.org/~cwinters/Workflow-0.17/ /J -- --- -- -- -- - - --

Re: How to best replace one string with another in a text file

2006-02-28 Thread Lyle Kopnicky
Paul Rousseau wrote: Hello, I want to open a text file, look for a specific string, replace it with a new string, and write the line out to another file. For lines not containing the specific string, I want to write out as is. I was wondering if it is possible to do it with a map or splice

Re: How to best replace one string with another in a text file

2006-02-28 Thread Lyle Kopnicky
Paul, Here's an even more frighteningly succinct version of your loop, without the intermediate variable: print OUTFILE map { s/$oldnodename/$currnodename/g; $_ } INFILE; -- Lyle Kopnicky Software Project Engineer Veicon Technology, Inc. ___

Re: How to best replace one string with another in a text file

2006-02-28 Thread Lyle Kopnicky
Another option which occurred to me - there's no reason to replace text line-by-line here. You could write: $text = INFILE; $text ~- s/$oldnodename/$curnodename/g; print OUTFILE $text; Although I agree with Alejandro... if your file is gigabyte-sized, you will probably want to go back to the

Re: Document flow

2006-02-28 Thread Alejandro Santillan
I mean a workflow that involves the treatment of a document, i.e. a system that can register the reception of a document and a register the sucessive changes and logs the depts where it suffered the changes. Maybe Workflow-0.17 could help. Thank you Alejandro - Original Message - From:

PPM object interface?

2006-02-28 Thread Lyle Kopnicky
Hi folks, I know how to use PPM from the command line, but I want to call it from Perl, preferably without spawning separate processes. There seems to be a PPM3 module installed in ActivePerl, but how do I access it? E.g., I would like to write something like: use PPM; my $ppm = new