s/$pattern/$replace/g
On Tue, 5 Mar 2002, Tor Hildrum wrote:
#!/usr/bin/perl -w
use strict;
use warnings;
print What file do you want to open?\n;
chomp(my $openfile = STDIN);
print What file do you want to write to?\n;
chomp(my $outfile = STDIN);
print What do you want to replace in
#!/usr/bin/perl -w
use strict;
use warnings;
print What file do you want to open?\n;
chomp(my $openfile = STDIN);
print What file do you want to write to?\n;
chomp(my $outfile = STDIN);
print What do you want to replace in the first file?\n;
chomp(my $pattern = STDIN);
print What do you want to
Tor Hildrum wrote:
#!/usr/bin/perl -w
use strict;
use warnings;
print What file do you want to open?\n;
chomp(my $openfile = STDIN);
print What file do you want to write to?\n;
chomp(my $outfile = STDIN);
print What do you want to replace in the first file?\n;
chomp(my $pattern =
Tor Hildrum wrote:
#!/usr/bin/perl -w
use strict;
use warnings;
print What file do you want to open?\n;
chomp(my $openfile = STDIN);
print What file do you want to write to?\n;
chomp(my $outfile = STDIN);
print What do you want to replace in the first file?\n;
chomp(my $pattern =