in reply to problem changing name of uploaded file!
Previous to 5.6.0 you couldn't use a scalar there, and would need to use Symbol and gensym a symbol for use.my $in = $q->upload('uploaded_file'); my $save_as = "demo.txt"; open(my $out, "> $save_as") or die "Cannot write to '$save_as': $!"; print $out <$in>; close($out);
|
|---|