Can you provide more details of "acting weird" (and specific snippets if applicable)?
What versions of CGI are on your server and your friend's server (I would guess they're different)? If different, check the CGI.pm changelog to see if anything in there matches up with your symptoms.