Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!milano.sw.mcc.com!uudell!bigtex!texsun!csccat!camdev!mmuegel From: mmuegel@camdev.comm.mot.com (Michael S. Muegel) Newsgroups: comp.lang.perl Subject: chmod() with a $variable mode Keywords: chmod Message-ID: <393@camdev.comm.mot.com?> Date: 26 Feb 91 06:27:09 GMT Reply-To: mmuegel@mot.com (Michael S. Muegel) Organization: Motorola, Inc., Fort Worth, Texas Lines: 22 I have been trying to get chmod working with a non-numeric mode argument (e.g. a scalar variable). I seems that the following: chmod ($Mode, $File); does not work as expected. I think it is using the ASCII numerical values or the like. When I do a ls -l I get bits I did not even know existed! Now I think the answer invlolves using pack or vec, but then again, maybee not. Can anyone enlighten me? Thanks, -Mike -- +-----------------------------------------------------------------------------+ | Mike Muegel | Internet: mmuegel@mot.com | | Software Tools Group | UUCP: uunet!motcid!muegel | | Fort Worth Research & Development Center | Voice: (817) 232-6129 | | Cellular Infrastructure Group | Fax: (817) 232-6081 | | Radio Telephone and Systems Group | Mail: 5555 North Beach St. | | Motorola, Inc. | Fort Worth, TX 76137 | +-----------------------------------------------------------------------------+