Tony Frasketi wrote:
> Is there an ASCII equivalent to the numeric value UID returned by
> stat($filename)[4] and if so is there a function to aquire the ASCII
> value... Also is the UID  related to the owner of the file as shown in
> the directory display ls -al in Unix?
> 
> If UID and file ownership is not, however related, is there a function
> to obtain the file's owner name in ASCII format?


my $user = getpwuid( (stat $filename)[4] );


perldoc -f getpwuid


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to