Tim Johnson wrote: > > I think you can also do it this way if it makes more sense (someone correct > me if I'm wrong, I can't test this here): > > my $count = (readdir $dh); > > Which (again, correct me if I'm wrong) basically says "Assign the scalar > value of the list whose elements are created by executing "readdir $dh" to > the scalar $count".
No, that reads from readdir() in scalar context and returns a single file name. You can only force list context on the left side of an assignment. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]