aca has asked for the wisdom of the Perl Monks concerning the following question:
How can i cut the first two directories i.e. /usr/share/ and i want only /directory/piano_book.mp4? Any help will be appreciated. Thanks in advance.my $filespec = "/usr/share/directory/piano_book.mp4";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to cut the directory path?
by kevbot (Vicar) on Feb 10, 2016 at 07:17 UTC | |
by aca (Initiate) on Feb 10, 2016 at 07:20 UTC | |
by Laurent_R (Canon) on Feb 10, 2016 at 07:29 UTC | |
by Anonymous Monk on Feb 10, 2016 at 07:24 UTC | |
by AnomalousMonk (Archbishop) on Feb 10, 2016 at 18:50 UTC | |
|
Re: How to cut the directory path?
by Discipulus (Canon) on Feb 10, 2016 at 08:52 UTC | |
|
Re: How to cut the directory path?
by GotToBTru (Prior) on Feb 10, 2016 at 17:29 UTC |