Using Your Custom Scanner
my $text =<<'EOF'; This is [b]some bold text[/b] This is [i]some italic text[/i] EOF print $scanner->transform($text);
Thus Spake Andy:
There's also the transform()
method which does all that for you.
my $text =<<'EOF'; This is [b]some bold text[/b] This is [i]some italic text[/i] EOF print $scanner->transform($text);
There's also the transform()
method which does all that for you.