RE: reading from directories => no values

2002-01-09 Thread Bob Showalter
> -Original Message- > From: Karsten Borgwaldt [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 09, 2002 10:29 AM > To: [EMAIL PROTECTED] > Subject: reading from directories => no values > > > Hi all, > > can anybody tell me, why I can't push

Re: reading from directories => no values

2002-01-09 Thread Jon Molin
Karsten Borgwaldt wrote: > > Hi all, > > can anybody tell me, why I can't push any read values into an array? > > my code is: > .. > .. > .. > opendir(IN, "some_path") || die "opendir: $!"; > rewinddir(IN); > while (defined($_ = readdir(IN))) > {unless (m/^\.{1,2}$/ or not m/'.foo'$/) # all f

reading from directories => no values

2002-01-09 Thread Karsten Borgwaldt
Hi all, can anybody tell me, why I can't push any read values into an array? my code is: .. .. .. opendir(IN, "some_path") || die "opendir: $!"; rewinddir(IN); while (defined($_ = readdir(IN))) {unless (m/^\.{1,2}$/ or not m/'.foo'$/) # all files, that are not "." or ".." and that end ".foo"!