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.
I wan't to use this variable to determine the permissions for the files on a
linux machine. Is there an easier way?
Tricia
I'm trying to put the string from the system(ls -al) into a variable.
@list = `ls -al`;
It simply prints to the page and puts 1 in the variable.
What's that mean '1' anyway ?
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Sun, Apr 06, 2003 at 07:01:02AM -0400, [EMAIL PROTECTED] wrote:
I wan't to use this variable to determine the permissions for the files on a
linux machine. Is there an easier way?
opendir
readdir
stat
closedir
perldoc -f each of those for the docs.
--
Paul Johnson - [EMAIL PROTECTED]
[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?
[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.
I wan't to use this variable to determine the permissions for the files on a
linux machine. Is there an easier way?
Hi Tricia.
There's
Stat::lsMode would probably be of interest as well.
http://search.cpan.org/author/MJD/Stat-lsMode-0.50/lsMode.pm
On Mon, 2003-04-07 at 10:41, R. Joseph Newton wrote:
[EMAIL PROTECTED] wrote:
Hello Mother,
While not knowing exactly what you want to do,
in general you can use the