It means to match a literal $ sign, then the string 'boundary.' To do what you want, just do what japhy said and use:if (/^-+\$boundary/){
(or you can use quotemeta on $boundary)if (/^-+\Q$boundary\E/){
The 15 year old, freshman programmer,
Stephen Rawls
In reply to Re: safe regex variables
by srawls
in thread safe regex variables
by oconnelm
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |