Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: How To Upload File Using CGI?

by PerpLexicon (Novice)
on Jul 02, 2002 at 17:58 UTC ( #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? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2023-03-22 03:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?