psmail has asked for the wisdom of the Perl Monks concerning the following question: ⭐ (strings)
I need to separate the filename and path from a string.
e.g.
Thanks$a = "/root/subroot/subsubroot/filename"; I want to separate filename and the path. i.e. The output should be $b = "/root/subroot/subsubroot/" $c = "filename"
Originally posted as a Categorized Question.
Back to
Seekers of Perl Wisdom