From: Gehrigal - W. <we...@ge...> - 2002-12-03 21:58:38
|
hi >> my $q = new CGI; >> >> my $file = $q->param("file") || &error( "No File received!"); >I know it shouldn't matter, but it seems to be a bad idea to name a >variable and a file handle the same...IMHO. Could cause confusion. There is no problem to do this... the variablename and parametername are to different things. >I would do an open as binary here, otherwise the output will always be >ascii (I think...would have to go back and do some reading on that). I think i have to use the binmode only on Windowsserver. On Unixservers this cgi function will not work. bye Alex |