in reply to filehandles being recorded as CGItemp files

Hello ,

post your code and let's see what's the problem

most likely it's due to use of "import_names" function with CGI.PM module

bye

  • Comment on Re: filehandles being recorded as CGItemp files

Replies are listed 'Best First'.
Re^2: filehandles being recorded as CGItemp files
by Andre_br (Pilgrim) on Apr 28, 2006 at 18:40 UTC
    Sure, here is my code:
    # ... use CGI; my $q = new CGI; my $namecover = check_input( $q->param("cover") ); my $photocover = $q->upload("cover"); $namecover = lc $namecover; my ($radical, $extension) = split (/\./, $namecover); $namecover_system = "$record_id.$extension"; # this record_id comes fr +om the database $namecover_system = untaint ( $namecover_system ); # the -T switch wou +ldnīt work without this; the untaint() is a sub I created to untaint +the data open (PHOTO,">../images/covers/$namecover_system") || die $!; binmode PHOTO; while (<$photocover>) { print PHOTO; } close PHOTO; # ...