$Bill Luebkert wrote:
Right about the /i. That's conventional laziness on my part, as it is usually what I want, though it would be detrimental in this case.Richard A. Wells wrote:[...]The _expression_ $path_elem =~ s{(\s)}{\\$1}gio;The /io is not needed/wanted. And I always use /o unless I'm intentionally interpolating in my pattern. Perhaps the regex engine is smart enough these days to infer that from the pattern, but it's another piece of conventional laziness. Sure. It's a choice. But s/(\s)/\$1/g will handle other whitespace, too.I think it's easier to read this: my $win32 = $^O =~ /Win32/i; my $path_elem = $ENV{CLEARCASE_PN}; $path_elem =~ s/ /\ /g if not $win32; Sorry. Understood.PS: Top-posting is something we try to avoid in these lists. R. -- *** Richard A. Wells, [EMAIL PROTECTED], +1.978.371.7425 *** Reality And Wonder, http://www.raw.com/ |
_______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs