[EMAIL PROTECTED] wrote:
> 
> I'm trying to put the string from the system("ls -al") into a variable.  It
> simply prints to the page and puts 1 in the variable.

perldoc -f system

> I wan't to use this variable to determine the permissions for the files on a
> linux machine.  Is there an easier way?

The third field returned from the stat (or lstat) function contains all
the permission bits for a file.

perldoc -f stat
perldoc -f lstat
man 2 stat


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to