OK, I tried "or" and it showed the same behaviour. The problem is that I'm never sure if the user has permissions to change the directory or not, owing to my workplace's overly complicated user/group hierarchy. So they may, they may not - in my test situation, they don't.
Kate On 8/11/06, Tal Cohen <[EMAIL PROTECTED]> wrote: > This is just a wild guess, but it could be an order of operations issue. Try > using "or" instead of "||". In addition, is the script running as a user > that has permission to change the file? > > > Tal > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Kate Wood > Sent: Friday, August 11, 2006 9:55 AM > To: Boston.pm List > Subject: [Boston.pm] chmod issue > > Hi, > Does anyone know of any issues with chmod? I'm trying to do the following: > > chmod 0777, $file || die "That didn't work so well"; > > I've tried this numerous ways, and yet the file is not chmodding, nor > is the process dying. It's returning a 1, which according to the camel > book means it worked (chmod returns the number of files that were > successfully chmodded?) I think Perl honestly believes it's chmodding > the file. Any ideas? > > Kate > > _______________________________________________ > Boston-pm mailing list > [email protected] > http://mail.pm.org/mailman/listinfo/boston-pm > > _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

