in reply to Re: File source from memory
in thread File source from memory
Still returns the C:\\path\name. (as I expected).my $fh = CGI::upload('upload'); print $fh;
Print out the file (from the docs) prints out just fine but it's not saving it.while (<$fh>) { print; }
So I went back and tried to read in <$fh> and it says it cant be found.
I can get it to print to the screen but it's saving either just the file name OR nothing at all and errors out.my $fh = CGI::upload('upload'); open(FILE, "$fh") or die "error: $!"; my $source = <FILE>; close (FILE);
|
|---|