[LWN Logo]

From: mjd@plover.com (Mark-Jason Dominus)
Subject: Stat::lsMode formats file permissions like 'drwxr-x--x'
Date: 27 Apr 1998 15:27:28 GMT


This module is for formatting file modes and permissions the way that
ls -l does.  For example, if you have a file that is world-readable,
but only writable by its owner, you can use

	file_mode($filename)

which will return the string '-rw-r--r--'.  It also provides a few
other facilities.  The module is supposed to be used by beginners, and
has an option to diagnose some common mistakes, like using mode 666
when you meant to use 0666.

It will soon be available on your favorite CPAN site soon in

http://www.perl.com/CPAN/authors/Mark-Jason_Dominus/Stat-lsMode-0.50.tar.gz

The most recent version, with information and documentation, is available at

http://www.plover.com/~mjd/perl/lsMode/

-- 

mjd@pobox.com                                             Mark-Jason Dominus
mjd@plover.com                              Plover Systems, Philadelphia, PA