![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Perms Perms Permsby ozone (Friar) |
on Sep 13, 2002 at 10:52 UTC ( #197505=note: print w/replies, xml ) | Need Help?? |
I'm not an expert on Win32, or the Win32::Perms module you're using, but something like this should work:
$userPerm is your command line argument
I've kept this verbose for clarity. Your basic problem is that 'constants' in Perl are actually calls to subroutines, which return a constant value. And as the 'READ' or 'WRITE' arguments from the command line are simply text strings, they aren't then interpreted as constants. So you need to 'translate' the command line args into calls to the relevant perl 'constants'.
In Section
Seekers of Perl Wisdom
|
|