dvd1999 has asked for the wisdom of the Perl Monks concerning the following question:
opendir (DIR, '\srt') or die "Couldn't open directory, $!"; while ($file = readdir DIR) { chomp($file); open (my $f, '<', "\srt\$file") or die "Open failed : $!"; print "$file\n"; close $file; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: why can't I
by Tux (Canon) on Oct 21, 2010 at 06:33 UTC | |
|
Re: why can't I
by ikegami (Patriarch) on Oct 21, 2010 at 06:25 UTC | |
|
Re: why can't I
by kcott (Archbishop) on Oct 21, 2010 at 06:07 UTC | |
|
Re: why can't I
by DrHyde (Prior) on Oct 21, 2010 at 09:43 UTC | |
|
Re: why can't I
by TomDLux (Vicar) on Oct 21, 2010 at 15:02 UTC | |
|
Re: why can't I
by dvd1999 (Initiate) on Oct 22, 2010 at 01:59 UTC | |
by ig (Vicar) on Oct 27, 2010 at 18:55 UTC |