http://www.perlmonks.org?node_id=1027212


in reply to Some assistance with splitting variables

Seems like you're just interested in stuff of the form:

(\w+)=<(.*?)>

So something like this should help:

while (<$log>) { my $info; $info{$1}= $2 while (/(\w+)=<(.*?)>/g); }

s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e