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.