Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How To Upload File Using CGI?

by PerpLexicon (Novice)
on Jul 02, 2002 at 17:58 UTC ( [id://178931]=note: print w/replies, xml ) Need Help??


in reply to How To Upload File Using CGI?

use CGI; my $req = new CGI; my $File = $req->param('file'); $File =~ /.*\."?(\w*)"?$/; my $Filename = lc($1); open (FILE, ">./$Filename"); while (read ($File, my $Buffer, 1024)) { print FILE $Buffer; } close FILE; eval("Therory: I have a life"); #returns false :'{

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://178931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2024-04-20 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found