in reply to How to extract the different parts of a string stored in a varible?

Most likely, you want to use Net::SIP resp. stuff out of the Net::SIP distribution. From a cursory glance, if you want to keep your hand-rolled socket reading, Net::SIP::Packet sounds interesting as it has the methods for parsing headers.

  • Comment on Re: How to extract the different parts of a string stored in a varible?