Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rjbs (4671)

  (email not shown publicly)
AOL IM: RicardoJBSignes (Add Buddy, Send Message)
Yahoo! ID: RicardoSignes (Add User, Send Message)

I'm a Perl coder living in Bethlehem, PA and working Philadelphia. I'm a philosopher and theologan by training, but I was shocked to learn upon my graduation that these skills don't have many associated careers. Now I write code.

Journal of rjbs (4671)

Tuesday August 21, 2007
09:35 AM

chmod and permissions weirdness

[ #34169 ]

This test report has been making me scratch my chin. It boils down to something like this:

  chmod 0222, $filename;

  skip "chmodded 0222 but file is still -r", 1 if -r $filename;

  eval { IO::File->open($filename, '<') or die "fail"; };
  like($@, qr/fail/, "we can't open an unreadable file");

This works everywhere I've tried it, including with Strawberry Perl on Windows XP. I haven't tried it myself under Cygwin. I'm not really concerned with this specific problem per se, because I know I can contact Chris (the tester) and ask for help. I'm more wondering, in general: huh? Is this sort of thing a Cygwin weirdness that I should know about for portability's sake? Does I need to always use

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.