in reply to
Reading directory structure?
opendir
,
readdir
.
Update:
also
sub
, for,
print
.
I think you should be able to it with only these statements.
Update2:
You might also need the
-d
file test operator.
"2b"||!"2b";$$_="the question"
Besides that, my code is untested unless stated otherwise.
One more: please review the
article about regular expressions (do's and don'ts) I'm working on
.
Comment on
Re: Reading directory structure?
Select
or
Download
Code
In Section
Seekers of Perl Wisdom