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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I split a string containing path+filename⭐
by arturo (Vicar) on May 14, 2001 at 18:30 UTC | |
Re: How do I split a string containing path+filename⭐
by grinder (Bishop) on May 15, 2001 at 12:34 UTC | |
Re: How do I split a string containing path+filename
by tye (Sage) on May 15, 2001 at 20:01 UTC | |
Re: How do I split a string containing path+filename
by tachyon (Chancellor) on May 21, 2001 at 08:50 UTC | |
Re: How do I split a string containing path+filename
by frank1982 (Initiate) on Mar 31, 2017 at 10:24 UTC |
Back to
Seekers of Perl Wisdom