RE: File Creator under WIN32 environment



-----Original Message-----
From: Chas Owens [mailto:chas.owens@xxxxxxxxx]
Sent: Wednesday, August 22, 2007 3:14 PM
To: Gunnar Hjalmarsson
Cc: beginners@xxxxxxxx
Subject: Re: File Creator under WIN32 environment

On 8/22/07, Gunnar Hjalmarsson <noreply@xxxxxxxxx> 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
.



Relevant Pages

  • Re: I need and explanation for this.
    ... I need and explanation for this. ... Ok im just starting to learn perl. ... You may need to always add 'use strict' and 'use warnings' at the begin of scripts,like, ...
    (perl.beginners)
  • Re: When to "use strict" when teaching?
    ... >>being influenced by the history of Perl ... history bias you" essentially the same as saying you are not ... An understanding of how symbolic references work is neither necessary ... I say don't expose people to the idea of omitting "use strict" until ...
    (comp.lang.perl.misc)
  • RE: I need help here
    ... Here's the Big Secret about Perl variables that most people learn ... use strict; ... : $outputfile = shift; ... You will often see a usage message in a script which deals ...
    (perl.beginners)
  • Re: Perl Peeves
    ... the context is known at compile time. ... use strict; ... well-defined in Perl. ... number/string ambivalence of scalars. ...
    (comp.lang.perl.misc)
  • Re: use strict and s///ee
    ... > last PATTERN; ... > translate as I expect. ... > If I remove use strict, then translation works as I want. ... You use a bareword string in the expression ...
    (comp.lang.perl.misc)

Loading