The main problem you're having is that strlen calculates the length of the string data already in the string you give it. out is not initialized when you pass it to strlen so the result is undefined.
Perl, Python and PHP are the holy trinity of CGI application programming. Stores have shelves full of books about these languages, they're covered well in the computer press and there's plenty on the ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results