in reply to read and link !
Substituting $dir for your pathname!use strict; my $dir = "c:\\temp\\"; opendir (DIR, $dir) or die "Unable to open dir $dir : $!"; my @files = readdir(DIR) or die "Unable to readdir $dir : $!"; closedir DIR; for (@files) { print "$_\n" }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: read and link !
by theguvnor (Chaplain) on Oct 29, 2002 at 15:42 UTC | |
by jdporter (Paladin) on Oct 29, 2002 at 21:54 UTC | |
by roik (Scribe) on Oct 29, 2002 at 16:53 UTC | |
|
Re: Re: read and link !
by Anonymous Monk on Oct 29, 2002 at 15:53 UTC | |
by Anonymous Monk on Oct 29, 2002 at 16:01 UTC | |
by davorg (Chancellor) on Oct 29, 2002 at 16:15 UTC | |
by roik (Scribe) on Oct 29, 2002 at 16:44 UTC | |
by Anonymous Monk on Oct 29, 2002 at 17:52 UTC |