or...$str= quotemeta 'C:\Windows'; if ( $path =~ /^$str/i ) { ...
is that not a bit easier on the eyes :)
As long as you use single quotes for $str it can stay readable...
cLive ;-)
In reply to Re: I think I'm starting to get it
by cLive ;-)
in thread I think I'm starting to get it
by coolmichael
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |