Re: problem deleting record in a text file

2003-11-13 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > Hi all, > > I'm new to perl (that's why I'm here :-). ...and you are getting your first opbject lesson: use strict; use warnings; > > $tmp_file="users.tmp"; > > open(TMPDAT, ">$tmp_file") || die ("Could not open temporary file!"); Note $tmp_file > rename ($temp_file,

Re: problem deleting record in a text file

2003-11-12 Thread Rob Dixon
G Lams wrote: > > I'm new to perl (that's why I'm here :-). I'm building a few cgis allowing > me to add, modify, delete users in a text file (perl version 5.8.0 on a > redhat 8 machine). > So far, I've been able to create the form and the perl scripts to add > users and verify their existence. > I

RE: problem deleting record in a text file

2003-11-12 Thread Dan Muey
> Hi all, Howdy > I'm now trying to delete one user/record inside my text file. > You will find below the script I wrote. Actually the > temporary file is created the way it should be but I didn't > succeed in renaming it to users.dat, saying "no such file or > directory". > This should be

problem deleting record in a text file

2003-11-12 Thread g . lams
Hi all, I'm new to perl (that's why I'm here :-). I'm building a few cgis allowing me to add, modify, delete users in a text file (perl version 5.8.0 on a redhat 8 machine). So far, I've been able to create the form and the perl scripts to add users and verify their existence. I'm now trying to