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);
In reply to Re (tilly) 1: problem changing name of uploaded file!
by tilly
in thread problem changing name of uploaded file!
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |