Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Question regarding basic help with my upload script

by nobull (Friar)
on Apr 03, 2005 at 12:24 UTC ( #444493=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $filename =~ /\.(gif|jpg|jpeg)$/
    
  2. or download this
    -s $file
    
  3. or download this
    open(OUT, ">$upload_dir/$filename") || die print "Fail to upload: $!";
    + 
    while(<$file>) {
            print OUT;
    }
    close(OUT);
    
  4. or download this
    {
       local *OUT; # Or better yet use lexical filehandle!
    ...
       close(OUT) or die "Error writing $filename: $!";
    
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2023-12-01 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (5 votes). Check out past polls.

    Notices?