in reply to How to extract cookies from an existing browser session

The standard module for this is HTTP::Cookies. You can use the any of the save, scan or as_string methods to extract cookie data from the jar depending on your requirements.