Different things!
> $binpath="c:\\qa\\kontor\\bin"
here you are backslashing to avoid string-interpolation within "doublequotes"
> if( $ENV{PATH} !~ /c:\\qa\\kontor\\bin/i)
here you are backslashing to avoid special escape \commands like \k
So in your code you need 2 levels of escapes!
$binpath="c:\\\\qa\\\\kontor\\\\bin";
Do better combine 'singlequotes' and quotemeta \Q and you avoid any explicit backslashing.
Cheers Rolf
( addicted to the Perl Programming Language)
In reply to Re: regex error (backslashing)
by LanX
in thread regex error
by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |