boftx has asked for the wisdom of the Perl Monks concerning the following question:
I'm not a regex expert by any means, so I'm not sure how to deal with this error message coming from a Win32 test box.
# ''\518' resolved to '\o{51}8' in regex; marked by +<-- HERE in m/^(?:C:\smoker\518 <-- HERE 11x64\cpan\build\Module-Cook +er-v0.1.3-Ec2rZJ\blib\lib\Module\Cooker\default)/ at C:\smoker\51811x +64\cpan\build\Module-Cooker-v0.1.3-Ec2rZJ\blib\lib/Module/Cooker.pm l +ine 295. # '
The code in question looks like this:
my $std_dir = $self->_profile_dir; my $src_type = ( $dir =~ /^(?:$std_dir)/ ) ? 'standard' : 'local';
$self->_profile_dir returns an absolute path created by Cwd::realpath(). It has passed on every *nix platform tested so far, but both Win32 testers have reported this, so it appears to be related to only Windows. I suspect it has to do with a '\' preceding a digit in the path.
Now that I see it here I'm wondering if I should put $std_dir into a qr//. Can anyone offer some insight here? Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can a better regex person than me tell me how to fix this? (quotemeta)
by Anonymous Monk on Dec 06, 2013 at 03:32 UTC | |
by Anonymous Monk on Dec 06, 2013 at 03:36 UTC | |
by boftx (Deacon) on Dec 06, 2013 at 04:02 UTC | |
|
Re: SOLVED - Can a better regex person than me tell me how to fix this?
by AnomalousMonk (Archbishop) on Dec 06, 2013 at 20:35 UTC |