Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Replacing a text field in a spreadsheet

by jonnyfolk (Vicar)
on Nov 21, 2002 at 16:55 UTC ( [id://214815]=note: print w/replies, xml ) Need Help??


in reply to Re: Replacing a text field in a spreadsheet
in thread Replacing a text field in a spreadsheet

I thought I was getting somewhere with this:
... open (IN, "$data") || die "Couldn't get $data page"; my @all = <IN>; close (IN); open (IN2, ">$data.tmp") || die "Couldn't open temporary file"; foreach my $line (@all) { my ($one,$two,$three,$four,$five,$six,$seven) = split "\t",$line; if ($three eq $checkthree) { ($one,$two,$three,$four,$five,$six,$seven) = @line; last; } } rename("$data.tmp", "$data") || die "Couldn't rename file"; print "okay";
As it went through and printed "okay".
Unfortunately it wiped the file so obviously my definition of "okay" is different to perl's :-)
What to do?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://214815]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found