Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$db = 'aaa.txt'; open(DATA, "$db") or die "did not open: $!\n"; @dat = (<DATA>); close(DATA); open(DATA, "$db") or die "did not open part 2: $!\n"; foreach $line (@dat) { $line =~ s/main/index/g; $line =~ s/\t/\s/g; #This is not working $line =~ s/\a/^/g; #This is not working print $line; } close(DATA);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Substituting data
by kvale (Monsignor) on Jun 28, 2002 at 17:48 UTC | |
|
Re: Substituting data
by bronto (Priest) on Jun 28, 2002 at 21:17 UTC | |
|
Re: Substituting data
by mikeirw (Pilgrim) on Jun 28, 2002 at 17:46 UTC | |
by Anonymous Monk on Jun 28, 2002 at 18:04 UTC | |
|
Re: Substituting data
by fruiture (Curate) on Jun 28, 2002 at 18:35 UTC | |
|
Re: Substituting data
by robobunny (Friar) on Jun 28, 2002 at 17:53 UTC | |
|
Re: Substituting data
by flounder99 (Friar) on Jun 28, 2002 at 19:09 UTC |