- or download this
open(LOCAL, ">$imgdir/$name") or print 'error';
- or download this
my $filename =
open(LOCAL, ">$filename") or die "Could't create '$filename': $!";
- or download this
use File::Copy 'copy';
my $filehandle = $q->upload( 'uploaded_file' );
...
cp $tmpfilename => $filename;