Hi,
Just for curiosity, Is there any way to spit the words in the directory?
For example if I am at directory of /home/temp/login
I would like to have a script that takes the current directory and separate the paths.
use Cwd qw();
my $path = Cwd::cwd();
$path is now /home/temp/login
I want to have a variable A to have /home, B = /temp C = login.
Also If I want to have /home/temp/(delete the context up to the last /. How can I do that? instead of using substr("$path,-7)
Thanks,