Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the PPI CPAN distribution.

Report information
The Basics
Id: 51532
Status: new
Priority: 0/
Queue: PPI

People
Owner: Nobody in particular
Requestors: user42 [...] zip.com.au
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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.