lol, I know this isn't prob. the best method.. but
$sock(xile).name should work.