in reply to Perl Permissions
Enabling warnings is useful, for example it would have pointed out your typo when you set $currentlog (use $logfiles[$hour] instead).use warnings; use strict; opendir(LOGS, "/perl/ass/") or die "Couldn't open /perl/ass/, $!"; my @logfiles = readdir(LOGS); print "File: $_\n" for @logfiles;
Update: Oh, Win32. Your initial code threw me off because you used '/' in your file and directory paths. I don't do enough Win32 work to help - sorry.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Permissions
by blundell (Novice) on Dec 03, 2006 at 14:48 UTC |