A
A. Farber
Hi,
I've got a string in my bigger program that parses wrong.
I've prepared a one-liner which shows the problem:
$ perl -e 'print qq{[color=#FF0000:$self->{BBCODE}]$card->{HTML}[/
color:$self->{BBCODE}]}'
Search pattern not terminated at -e line 1.
$ perl -v
This is perl, v5.8.8 built for i386-openbsd
As a workaround I have to split the string:
$ perl -e 'print qq{[color=#FF0000:$self->{BBCODE}]$card->{HTML}} . qq
{[/color:$self->{BBCODE}]}'
[color=#FF0000:][/color:]
Any comments? I haven't seen this happen often
Regards
Alex
I've got a string in my bigger program that parses wrong.
I've prepared a one-liner which shows the problem:
$ perl -e 'print qq{[color=#FF0000:$self->{BBCODE}]$card->{HTML}[/
color:$self->{BBCODE}]}'
Search pattern not terminated at -e line 1.
$ perl -v
This is perl, v5.8.8 built for i386-openbsd
As a workaround I have to split the string:
$ perl -e 'print qq{[color=#FF0000:$self->{BBCODE}]$card->{HTML}} . qq
{[/color:$self->{BBCODE}]}'
[color=#FF0000:][/color:]
Any comments? I haven't seen this happen often
Regards
Alex