- or download this
my @orig = ($/, $\);
undef($/);
undef($\);
open (JE, $file) || die "Cannot open $file";
(my $j = <JE>) =~ s/orig/new/g;
- or download this
close (JE);
open (JE, "> $file);
print JE $j;
close (JE);
($/, $\) = @orig;
- or download this
seek (JE, 0, 0);
print JE $j;
close (JE);
($/, $\) = @orig;