hi, i'm only looking at your pattern...try
if ($con =~ /^skins\/([0-9a-fA-F]{32})\/) {
notice the following:
- in your code the regex operator was =!, it actually is =~. the negation is !~
- the m introducing the pattern slipped into the pattern itself. in your case, it's unnecessary anyway...