in reply to RE: Remove '.' and '..' from a list of filenames
in thread Remove '.' and '..' from a list of filenames
It spits out:@vals = (".","..",".\n","..\n","foo","foo\n","bar","bar\n"); foreach (grep !/^[.]{1,2}$/,@vals) { print "$_\n"; }
...as I would expect. It filtered out ".\n" and "..\n" just fine. Can you elaborate?foo foo bar bar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: RE: Remove '.' and '..' from a list of filenames
by mikfire (Deacon) on Aug 23, 2000 at 00:48 UTC | |
| |
|
RE: RE: RE: Remove '.' and '..' from a list of filenames
by merlyn (Sage) on Aug 23, 2000 at 00:44 UTC |