use File::Basename; # in your loop... print basename($file);
See also:
In reply to Re: perl script to print just directory names
by toolic
in thread perl script to print just directory names
by Vijay81
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |