in reply to permissions
It suggests something like:
use File::stat; $st = stat($file) or die "No $file: $!"; if ( ($st->mode & 0111) && $st->nlink > 1) ) { print "$file is executable with lotsa links\n"; }
Does anyone have any insight on that? In the interim, there is this oogly thing..
my @listfiles=`ls -l ./`; foreach(@listfiles) { chomp; $_=~s/ /\t/g; my @details = split(/\t/, $_); print "$details[-1]: $details[0]\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: permissions
by blakem (Monsignor) on Jul 14, 2001 at 01:51 UTC | |
by thatguy (Parson) on Jul 14, 2001 at 05:51 UTC |