[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, $data_file) or die ("Can't rename '$tmp_file' to
> '$data_file': $!\n");

There is no $temp_file.

Had you added the strict and warnings pragmas at the top of your file, you
would have been amply warned about the typo.

Joseph



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to