After running above code I am getting following values in @a (array), 0 '.' 1 '..' 2 'p17' but I am suppose to get just p17, Have I done any thing wrong, can any one suggest me how can I get just another directory(p17)name???my @a; my $dir = "/and/evel/aap/list/60"; opendir(PATCH, $dir) || die "Unable to open $dir "; @a = readdir(PATCH); print "@a\n"; closedir(PATCH); exit;
In reply to Reading Directory by Sun751
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |