Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: Getting a simple directory listingby ZZamboni (Curate) |
on May 01, 2001 at 04:24 UTC ( [id://76832]=note: print w/replies, xml ) | Need Help?? |
push does not use $_ as an implicit argument, so when you
do push(@dir) you are not pushing anything into @dir. You
have to do:
Although I would substitute that whole block (the readdir and the foreach) by: :-) --ZZamboni
In Section
Seekers of Perl Wisdom
|
|