> -----Original Message-----
> From: Chas Owens [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 22, 2007 3:14 PM
> To: Gunnar Hjalmarsson
> Cc: beginners@perl.org
> Subject: Re: File Creator under WIN32 environment
> 
> On 8/22/07, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> > Wagner, David --- Senior Programmer Analyst --- WGO wrote:
> > What on earth is an "OR-ed combination"? Anybody who can 
> translate that
> > para in the POD to English ( or Swedish ;-) )?
> 
> Here is an explanation in Perl:
> 
> #!/usr/bin/perl
> 
> use strict;
> use warnings;
> 
> use constant READ_ONLY => 1;
> use constant ARCHIVED => 2;
> use constant HIDDEN => 4;

I believe the fourth flag is SYSTEM. Is there a value for that?

No, I don't like assumptions.

These are the flags manipulated by the DOS "attrib" utility, which also
works in a console on most versions of MS-Windows. "attrib +r file.ext"
will set the read-only attribute. They also show up at the bottom of the
properties dialogue, although SYSTEM is missing there. Yes, they are
left over from MS-DOS, but still have some usefulness.

Bob McConnell

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to