[html-formfu] Re: HTML::FormFu keeps a filehandle opened?

Octavian Râşniţă orasnita at gmail.com
Thu Dec 17 16:54:12 GMT 2009


Sorry for bugging you with this question.

After I got the $record from the database for filling the form with it, 
using:
my $record = $c->model("DB::Records")->find($id);

if I add immediately:
undef $record->file->{handle};

Then everything works fine and I can use:
$form->model->update($record);

It seems that the line $form->model->update($record); doesn't let the 
$record get out of scope.

If I don't use that line, $record gets out of scope without needing to undef 
the file field explicitly.

Octavian




More information about the HTML-FormFu mailing list