Pathologically Eclectic Rubbish Lister | |
PerlMonks |
If statements with . and .. filehandles.by sparkyichi (Deacon) |
on Jun 18, 2002 at 20:14 UTC ( [id://175487]=perlquestion: print w/replies, xml ) | Need Help?? |
sparkyichi has asked for the wisdom of the Perl Monks concerning the following question:
I can't figure out why my directory listing with an if statement is not working the way I would expect. I want to exclude . and .. from showing up in the list so I did the following: This prints out a complete list including . and .. I then tried the following to produce only a . and .. listing: And it works only printing the following: . .. Why does it work one way and not the other? B.T.W. I know that this works great:
Sparky FMTEYEWTK
Back to
Seekers of Perl Wisdom
|
|