well use strict and use warnings would show you that $dirname doesn't exist.
what else do you think is "wrong" in the result?
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re^4: how list all the files and directories?
by LanX
in thread how list all the files and directories?
by littlemonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |