Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Error detection on CGI file upload attempts

by Corion (Patriarch)
on Nov 25, 2008 at 18:42 UTC ( [id://725915]=note: print w/replies, xml ) Need Help??


in reply to Error detection on CGI file upload attempts

-f <$inputFileHandle> is valid Perl syntax but it does not mean what you might think it does. It reads a line from $inputFileHandle and then checks whether a file with that name (including newline and all) exists.

You might want

-f $inputFileHandle

or possibly

@info = stat $inputFileHandle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-23 07:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found