in reply to Automation for performance tests

Biased community here. Yes, Perl is a good tool for this. Use LWP and see examples about UserAgent to see how to store cookie and session information.