in reply to Re^3: Win32::File::SetAttributes not numeric?
in thread Win32::File::SetAttributes not numeric?
I am currently using the pragmas use strict; use warnings; use diagnostics;
You only think you are. Just like use Win32::File; isn't working, neither is use strict;.
$ perl -e'use strict; my $attr; $attr |= READONLY' Bareword "READONLY" not allowed while "strict subs" in use at -e line +1. Execution of -e aborted due to compilation errors.
Without use strict;, READONLY would be considered the same as "READONLY", which is the symptom you described.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Win32::File::SetAttributes not numeric?
by mcarthey (Novice) on Jun 05, 2009 at 20:02 UTC | |
by ikegami (Patriarch) on Jun 05, 2009 at 20:10 UTC |