But it is better to use core module if such one exists - File::Basename in this case. Thus you will not make mistake while reinventing the wheel.my $full = '/usr/local/jboss'; my ($dir, $file) = $full =~ m|(.+)/(.+)|;
In reply to Re: removing the last word
by sh1tn
in thread removing the last word
by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |