Scarborough has asked for the wisdom of the Perl Monks concerning the following question:
Permission denied Found to be obsolete at find.pl line 13.
The file it stops at does not appear to be any different and there are sub directories which I don't need to search heres the codeThanks anyone for your help.foreach my $file (readdir(DIR)){ if($file ne '.' and $file ne '..' and ! (-d $file)){ print "$file\n"; #below is line 13 ithe original program open FILE, $dir.$file or die "$! $file"; foreach my $line (<FILE>){ if ($line =~ /use SBSDBRUN/){ $found = $file; last; } } if (! $found ){ push @files, $file; } undef ($found); close FILE; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Permission denied Found to be Obsolete
by dorward (Curate) on Sep 26, 2006 at 08:35 UTC | |
by Scarborough (Hermit) on Sep 26, 2006 at 09:18 UTC | |
by jdporter (Paladin) on Sep 26, 2006 at 14:30 UTC | |
|
Re: Permission denied Found to be Obsolete
by Scarborough (Hermit) on Sep 27, 2006 at 14:08 UTC | |
|
Re: Permission denied Found to be Obsolete
by Anonymous Monk on Sep 26, 2006 at 16:26 UTC |