You're right, (2) is not true. I commented out that particular line and it still works. But it's puzzling because the first time I commented it out, the image didn't show on the web page. It only showed on sebsequent uploadings.
I had been running the code without that 'open(FH, $file)' line and I swore it didn't work for almost an hour when I was at it. I double-checked the folder where it was supposed to go to and although the file was created, the image wasn't properly saved. That was when I added the 'open(FH, $file)' line and then the image was rightly created, which puzzled me.
In reply to Re: Re: use CGI vs use CGI qw(:standard)
by kiat
in thread use CGI vs use CGI qw(:standard)
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |