|
NAMEPPIx::QuoteLike::Dumper - Dump the results of parsing quotelike thingsSYNOPSISuse PPIx::QuoteLike::Dumper; PPIx::QuoteLike::Dumper->new( '"foo$bar baz"' ) ->print(); DESCRIPTIONThis class generates a formatted dump of a PPIx::QuoteLike object, or a string that can be made into such an object.METHODSThis class supports the following public methods. Methods not documented here are private, and unsupported in the sense that the author reserves the right to change or remove them without notice.newmy $dumper = PPIx::QuoteLike::Dumper->new( '"foo$bar baz"', variables => 1, ); This static method instantiates the dumper. It takes the string or PPIx::QuoteLike object to be dumped as the first argument. Optional further arguments may be passed as name/value pairs. The following optional arguments are recognized:
dumpprint PPIx::Regexp::Dumper->dump( 'foo/bar.pl', variables => 1, ); This static method returns a string that represents a dump of its first argument. It takes the same optional arguments as new(). This method differs from new() in its interpretation of the first argument.
Otherwise the first argument is handled just like new() would handle it. The return is the string representation of the dump. In addition to the optional arguments accepted by new(), the following can be specified:
The output for an individual quote-like object differs from the string() output on the same object in that it is preceded by the literal sting being dumped, and file and location information if that can be determined. listprint map { "$_\n" } $dumper->list(); This method returns an array containing the dump output. one line per element. The output has no left margin applied, and no trailing newlines. Embedded newlines are probable if the "ppi" argument was specified when the dumper was instantiated. $dumper->print(); This method simply prints the result of "string" to standard out. stringprint $dumper->string(); This method adds left margin and newlines to the output of "list", concatenates the result into a single string, and returns that string. SUPPORTSupport is by the author. Please file bug reports at <https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-QuoteLike>, <https://github.com/trwyant/perl-PPIx-QuoteLike/issues>, or in electronic mail to the author.AUTHORThomas R. Wyant, III wyant at cpan dot orgCOPYRIGHT AND LICENSECopyright (C) 2016-2022 by Thomas R. Wyant, IIIThis program is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES. This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
Visit the GSP FreeBSD Man Page Interface. |