|
Hello,
I'm having a bit of
a problem using the Tie::Registry module. I recently upgraded to perl 5.6.1 and
I can't get a script working that I had working under perl
5.002.
$old =
"c:\\foo;";
$new = "c:\\bar;"; $temp = $Registry->{"//$pc/HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment//custom_path"}; $_ =
$temp;
s/$old/$new/i; $temp =
$_;
For some reason the
script will not work if I have : within the value for $old. I don't get
any errors, it will not replace the value of c:\foo with c:\bar. If I set
$old to just foo, then the replaced value will look something like c:\c:\bar
(assuming the original value was c:\foo). I also noticed that if I set the
$old value to "\\p;", I will get the following
error:
Can't find unicode
character property definition via main->; or ;.pl at unicode/
Is/;.pl line 0 I guess I'm using a
option switch, but I'm not sure how to override it. I'm using version 0.24
or Tie::registry
Any insight or help
would be greatly appreciated.
Thanks
Dan
|
Title: RE: Running Perl Script through Windows 2000 Task Scheduler
- RE: Running Perl Script through Windows 2000 Task Schedule... Khan, Moin
- RE: Running Perl Script through Windows 2000 Task Schedule... Khan, Moin
- RE: Running Perl Script through Windows 2000 Task Schedule... Timothy Johnson
- RE: Running Perl Script through Windows 2000 Task Schedule... Khan, Moin
- RE: Running Perl Script through Windows 2000 Task Schedule... Timothy Johnson
- RE: Running Perl Script through Windows 2000 Task Schedule... Khan, Moin
- RE: Running Perl Script through Windows 2000 Task Sch... kbatzer
- Net::Ping and Lanman Dan Navilliat
- RE: :Ping and Lanman Scott Campbell
- RE: :Ping and Lanman Dan Navilliat
- Dan Navilliat
