Re: Load an hash from a text file

2005-03-02 Thread Web Solving
errata corrige: Lao Tzu|http://www.laotzu.com";>LaoTzu Taoism|http://www.taoism.com";>Taoism Tao |http://www.taoist-directory.com";>Tao -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Load an hash from a text file

2005-03-02 Thread Web Solving
replacement->[1]/g; > > HTH, GStC. > > -Original Message- > From: Web Solving [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 01, 2005 11:58 AM > To: Charles K. Clarkson > Cc: Perl BG > Subject: Re: Load an hash from a text file > > sorry, i'm a d

Re: Load an hash from a text file

2005-03-02 Thread Web Solving
gt;[0]\E/$replacement->[1]/g; > > HTH, GStC. > > -Original Message- > From: Web Solving [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 01, 2005 11:58 AM > To: Charles K. Clarkson > Cc: Perl BG > Subject: Re: Load an hash from a text file > > sorry, i'm a

Re: Load an hash from a text file

2005-03-01 Thread Web Solving
tine(about 100 times) but it change only one term per lineit's strange On Tue, 1 Mar 2005 14:17:23 +0100, Web Solving <[EMAIL PROTECTED]> wrote: > >#!/usr/bin/perl > > > >use strict; > >use warnings; > > > >my $file = 'in.txt

Re: Load an hash from a text file

2005-03-01 Thread Web Solving
my $line = ) { > foreach my $replacement ( @replacements ) { > $line =~ s/\Q$replacement->[0]\E/$replacement->[1]/; > } > print OUT $line; >} > >close IN; >close OUT; the scipt doesn't work, the result is an un/understandable list of pipes and unco

Re: Load an hash from a text file

2005-02-28 Thread Web Solving
very thanks, tomorrow morning i'll test it and i'll tell you if it works (i'm sure about it)! really thanks for helping me! Alexander -- WebSolvingJaa: informatica per il web e l'azienda. http://websolvingjaa.altervista.org/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Load an hash from a text file

2005-02-28 Thread Web Solving
> Telling us > what you expect would aid us in helping you further. i simply need my script perform a "search and replace" on a txt file loading the word to be searched and the replacing word from another file. -- WebSolvingJaa: informatica per il web e l'azienda. http://websolvingjaa.altervis

Re: www.perldoc.com

2005-02-28 Thread Web Solving
me too, i'm located in Italy. On Mon, 28 Feb 2005 16:24:53 +0100, Web Solving <[EMAIL PROTECTED]> wrote: > me too, i'm located in Italy > > > On Mon, 28 Feb 2005 09:01:13 -0600, Adamiec, Larry <[EMAIL PROTECTED]> wrote: > > I can ping www.perdoc.com succ

Re: Load an hash from a text file

2005-02-28 Thread Web Solving
other problems with this damn' script. i wrote it again adding some feature i find in the net, now it looks like it: open(INFILE,"lista.txt") || die "Cant read lista.txt. Reason: $!"; # maybe the error is in this file.it is like: # word|<\a href="http:\/\/www\.word.com>word<\/\a> # other word|<\a

Re: Load an hash from a text file

2005-02-28 Thread Web Solving
On Mon, 28 Feb 2005 18:36:44 +0530, Ankur Gupta <[EMAIL PROTECTED]> wrote: > Web Solving wrote: > > > Where is the closing braces for this while loop > CUT > } ---> Please add this > > thanks a lot! -- WebSolvingJaa: informatica per il web e l'aziend

Load an hash from a text file

2005-02-28 Thread Web Solving
i rebuilt the scipt without using any hash in this way: open(INFILE,"lista.txt") || die "Cant read lista.txt. Reason: $!"; while( ){ my ($search, $replace) = split /|/; open(READIT,"testo.txt") || die "Cant read file.txt. Reason: $!"; open(WRITEIT,">>testo_new.txt") || die "Cant write file

Load an hash from a text file

2005-02-28 Thread Web Solving
Hi all, i'm a real perl newbie. i've a question for you all. i've to perform a "search and replace" on a text file, and i wrote this: open(READIT,"file.txt") || die "Cant read file.txt. Reason: $!"; open(WRITEIT,">>file_new.txt") || die "Cant write file_new.txt. Reason: $!"; while () { if ($riga