in reply to Problems reading ALL cookies

I highly recommend you use warnings; and use strict; in all of your scripts, no matter how short.