or an obfuscated solution:
my $filename = '/usr/local/bin/perl'; open my $fh, '<', \$filename; local ($/,$\) = ('/')x2; /(?<=\w)\// && ($\.=$_) && print("\n".($.-1).'. ') while <$fh>;
Regards
mwa
In reply to Re: List directory(s)
by mwah
in thread List directory(s)
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |