in reply to Re^2: Tainting problem on Strawberry perl
in thread Tainting problem on Strawberry perl
I don't know why, sorry, but I can confirm it's probably a bug in your build. It doesn't affect my ActivePerl builds. I simplified your code to
use File::Spec::Win32; my $wdir = 'C:/strawberry'; $wdir =~ s[:][]g; $wdir =~ /(.*)/; print File::Spec::Win32->catfile('C:/cache', $1), "\n";
and I get (ActivePerl 5.8.8 & 5.10.0)
C:\cache\C\strawberry
You presumably get
C:\cache\C:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Tainting problem on Strawberry perl
by EvanCarroll (Chaplain) on Feb 28, 2008 at 23:09 UTC | |
by ikegami (Patriarch) on Feb 28, 2008 at 23:33 UTC |