|Subject:||QuoteLike string() method|
|Date:||Sun, 15 Nov 2009 08:42:54 +1100|
|To:||bug-PPI [...] rt.cpan.org|
|From:||Kevin Ryde <user42 [...] zip.com.au>|
As a suggestion for methods, it'd be good if PPI::Token::QuoteLike had a string() method the same as PPI::Token::Quote, giving the guts of the quoted thing (delimiters stripped but backslashes unchanged). I'd use it on QuoteLike::Backtick and QuoteLike::Command, and it seems fairly natural for QuoteLike::Regexp. For QuoteLike::Words it may be a little unusual to want the raw contents rather than split into words, but I could imagine say looking at the raw contents to check indenting or tabs.