in reply to simple parse question

split and File::Basename are your friends.

-Silent11