According to the principle of \b why is this doing this?
$word = "(HP)";
$word =~ s/[,\]\)\}]\b//;
$word =~ s/\b[,\]\)\}]//;
Since the parentheses is on either side of the boundary, it should take off bpth of
them.
Instead the result is:$word = "(HP"
It only took of the end paren.
When
[EMAIL PROTECTED] wrote:
According to the principle of \b why is this doing this?
$word = "(HP)";
$word =~ s/[,\]\)\}]\b//;
$word =~ s/\b[,\]\)\}]//;
Since the parentheses is on either side of the boundary, it should take off bpth of them.
Instead the result is:$word = "(HP"
It only took of
After a long day, a long night, and another long day I spew crap. And no
one catches me. A couple hours later I lay down to finally get some
sleep and !! I realized I screwed up. I try to shove it off to no avail.
I must respond...
Randy W. Sims wrote:
[EMAIL PROTECTED] wrote:
According to the
--- Begin Message ---
On Fri, Jun 18, 2004 at 12:43:31PM -0400, [EMAIL PROTECTED] wrote:
> According to the principle of \b why is this doing this?
>
> $word = "(HP)";
> $word =~ s/[,\]\)\}]\b//;
> $word =~ s/\b[,\]\)\}]//;
$word = '(HP)';
$word =~ s/^\(|\)$//g; # remove parren @ beginng and end.