in reply to How do I extract a file name from a path string

##Typo in the previous answer
$data[$#data]

Originally posted as a Categorized Answer.