On Tuesday, June 18, 2002, at 08:27 , Nikola Janceski wrote:
[..]
>>
>> if($foto) {
>> open (F, ">$path/$number/$foto") || die "Cannot open $!";
>> while(<$foto>) {
> ## should be
> while(<F>) {
>> print F $_;
>> }
>> close F;
>> }
[..]
Not really - since that would mean trying
to read from a file descriptor opened for write.
the question here is what do we mean by
'upload the data'
I presume that this is some sort of CGI thingie
and that the 'hope' was that
$foto
would define the File Descriptor to be read????
Or whould we say that as
open(FH, "$SomePlaceToReadFrom")
or die "Unable to find a place to read from: $!\n";
if($foto && $path && $number) {
open (F, ">$path/$number/$foto") || die "Cannot open $!";
print F $_ while(<FH>) ;
close F;
}
close FH;
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]