PPI icon indicating copy to clipboard operation
PPI copied to clipboard

Allow passing a string reference of source to PPI::Dumper->new

Open moregan opened this issue 11 years ago • 1 comments

Request from the RT queue: https://rt.cpan.org/Public/Bug/Display.html?id=16836 -- support passing source code into PPI::Dumper->new, rather than first having to create a PPI::Element:

In addition, it would be cool if PPI::Dumper could allow the following style in addition: 

# Create the dumper from a code ref
my $Dumper = PPI::Dumper->new( \'$a = 1;' );

moregan avatar Nov 11 '14 23:11 moregan

@adamkennedy : In the RT ticket you indicated you took the ticket. Did you end up doing something with this?

wchristian avatar Nov 12 '14 13:11 wchristian