Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: CGI-Upload / Bad File Number

by frnk (Novice)
on Jul 17, 2016 at 05:59 UTC ( [id://1167903]=note: print w/replies, xml ) Need Help??


in reply to Re^4: CGI-Upload / Bad File Number
in thread CGI-Upload / Bad File Number

Concerning upload:
works now - poj found the point: also the eval...

Concerning security:
Not so relevant in this case. It's a private site with previous login. But anyway i want to know mor about this:

In between i've inserted $val =~ s/'/\\'/gms; before the eval-satement - not for security but to protect the '-character - maybe this is relevant...
I'm not sure how this might be used to run code. Can you give me an example??

I looked at 'CGI->VarsAsHash' but i dont really understand it. Especially the '\%hash' in the return-statement: what does the backslash do??
Also: is there returned a hash or single strings??

Thanks, Frank

Replies are listed 'Best First'.
Re^6: CGI-Upload / Bad File Number
by Anonymous Monk on Jul 17, 2016 at 08:26 UTC
    Answer me this, who wrote that code? Where did you copy/paste from?

      This eval-thing???

      It's my own work...

      I'm a quiet good hobby-programmer with 30 years experience in C/C++. Perl i used first time around 3 years ago. So i'm still learning, but a lot of things (as ie. eval) i know from other languages. So things are quiet easy for me if they are not too specific.

Log In?
Username:
Password:

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

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

    No recent polls found