in reply to log into a website via perl client

Have a look at the LWP-family of modules.

I'm quite sure you will find amongst them a module which will deal with all the nitty gritty of logging into a website and do all kinds of useful things to it.

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law