cored has asked for the wisdom of the Perl Monks concerning the following question:
but this code gave me an error, refering to a closed filehandle, that in this case is a dirhandle can somebody help me plz.#!/usr/bin/perl -w use strict; my @files; opendir(DIR,"/some_dir"); while(<DIR>){ next if (/^.$/); @files = readdir(DIR,$_); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Opendir error
by IlyaM (Parson) on Jan 17, 2003 at 13:35 UTC | |
|
Re: Opendir error
by vek (Prior) on Jan 17, 2003 at 13:48 UTC | |
|
Re: Opendir error
by gjb (Vicar) on Jan 17, 2003 at 13:49 UTC | |
by grinder (Bishop) on Jan 17, 2003 at 14:24 UTC | |
by jdporter (Paladin) on Jan 17, 2003 at 16:36 UTC |