On Thursday 01 November 2007 11:25, boxingcat wrote:
> / Sorry if it is a repost. didn't see the first one in the group.
>
>
> I would like to replace string 1 with string 2 in file3.dat, here is
> what I did:
>
> #!/usr/bin/perl
use warnings;
use strict;
> @inputfile= ("string1"); # need to h
/ Sorry if it is a repost. didn't see the first one in the group.
I would like to replace string 1 with string 2 in file3.dat, here is
what I
did:
#!/usr/bin/perl
@inputfile= ("string1"); # need to have an arrary later
@outputfile=("string2");
@attfile=("file3.dat");
$mytempfile=$inputfile[0]
I would like to replace string 1 with string 2 in file3.dat, here is
what I
did:
#!/usr/bin/perl
@inputfile= ("string1"); # need to have an arrary later
@outputfile=("string2");
@attfile=("file3.dat");
$mytempfile=$inputfile[0];
$youtempfile=$outputfile[0];
$hisfile=$attfile[0];
perl -pi -e 's