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 = );
> print "What file do you want to write to?\n";
> chomp(my $outfile = );
> print "What do you want to replace i
Tor Hildrum wrote:
>
> #!/usr/bin/perl -w
> use strict;
> use warnings;
>
> print "What file do you want to open?\n";
> chomp(my $openfile = );
> print "What file do you want to write to?\n";
> chomp(my $outfile = );
> 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 = );
> print "What file do you want to write to?\n";
> chomp(my $outfile = );
> print "What do you want to replace in the first file?\n";
> chomp(my $pattern