I am not sure about #1 ... i wish i had time to look into it, but i have other work to do. #2, however is simply not true. Here is code that works for me:
Hope this helps ...use CGI qw(:standard); use File::Basename; my $PATH = '/path/to/dir/to/store/files'; if (param('go')) { my $handle = upload('the_file'); my $name = param('the_file'); fileparse_set_fstype('MSDOS') if $name =~ /\\/; $name = basename($name); open OUT, '>', "$PATH/$name" or die "can't open file $name: $!"; print OUT while <$handle>; }
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
In reply to Re: use CGI vs use CGI qw(:standard)
by jeffa
in thread use CGI vs use CGI qw(:standard)
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |