Problem this snippet solves:
those codes permit to extract the entire ltm configuration in xml format. I have separate the code in various script. Every script works on specific section
SSL Client Profiles
SSL Server Profiles
I used those codes on 10.x, 11.x and 12.x versions with success.
You need install SOAP::Lite package.