in reply to Re: File source from memory
in thread File source from memory

Thanks for your help. After reading what you wrote and what was on CGI again, it's still not running smoothly.
my $fh = CGI::upload('upload'); print $fh;
Still returns the C:\\path\name. (as I expected).
while (<$fh>) { print; }
Print out the file (from the docs) prints out just fine but it's not saving it.

So I went back and tried to read in <$fh> and it says it cant be found.

my $fh = CGI::upload('upload'); open(FILE, "$fh") or die "error: $!"; my $source = <FILE>; close (FILE);
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.