Skip Menu |

This queue is for tickets about the Data-Dump CPAN distribution.

Report information
The Basics
Id: 84568
Status: open
Priority: 0/
Queue: Data-Dump

People
Owner: Nobody in particular
Requestors: b244145 [...] tyldd.com
Cc:
AdminCc:

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



Subject: qr'$foo' stringified as qr/$foo/
'' as delimiters don't interpolate, so this is wrong $ perl -MData::Dump -e " dd qr'$dollar' " qr/$dollar/ Thanks
Is there actually any way to output the same regexp using qr/.../ notation?  Something like qr/\$dollar/ means something different.

I wasn't able to make any string match qr'$dollar'.
On Thu Apr 11 17:09:09 2013, GAAS wrote: Show quoted text
> Is there actually any way to output the same regexp using qr/.../ notation? > Something like qr/\$dollar/ means something different. > > I wasn't able to make any string match qr'$dollar'.
qr/${\'$'}dollar/ seems to work, no? DB<1> p qr'$dollar' (?^:$dollar) DB<2> p qr/${\q{$}}dollar/ (?^:$dollar) DB<3> Eirik