PriNet has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl use strict; use CGI qw/:standard/; ############################################################## ### Variable Definitions ### ############################################################## my($FileHandle) = ""; my($FileStream) = ""; ############################################################## ### Main Program Begins Here ### ############################################################## $FileHandle = CGI->new; $FileStream = $FileHandle('AUT_File'); open (OUTFILE, ">test.jpg"); print OUTFILE $FileStream; close (OUTFILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: saving the file uploaded...
by Sinister (Friar) on Feb 28, 2002 at 19:32 UTC | |
by PriNet (Monk) on Feb 28, 2002 at 20:02 UTC | |
|
Re: saving the file uploaded...
by earthboundmisfit (Chaplain) on Feb 28, 2002 at 19:23 UTC | |
by chromatic (Archbishop) on Feb 28, 2002 at 19:36 UTC | |
|
Re: saving the file uploaded...
by screamingeagle (Curate) on Feb 28, 2002 at 19:23 UTC | |
by chromatic (Archbishop) on Feb 28, 2002 at 19:29 UTC | |
by screamingeagle (Curate) on Feb 28, 2002 at 19:44 UTC |