prints:my $pwd = `pwd`; print $pwd; my ($parent_dir) = $pwd =~ m|^(.*)/[^/]+.*$|g; print $parent_dir;
cheers,/home/myself/develop/0_test /home/myself/develop
In reply to Re: Current Directory
by svenXY
in thread Current Directory
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |