App::pq - Like jq and gq, but with Perl
With no arguments, dump the JSON data structure from STDIN as a Perl data structure.
$ echo '{"foo":[1,2,3],"bar":"blee"}' | pq $VAR1 = { 'bar' => 'blee', 'foo' => [ 1, 2, 3 ] };
With an argument, process the argument as code with $j as the perl data structure.
$ echo '{"foo":[1,2,3],"bar":"blee"}' | pq 'print join "\n", keys %$j' foo bar
Kaitlyn Parkhurst (SymKat) <symkat@symkat.com> ( Blog: http://symkat.com/ )
Copyright (c) 2022 the WebService::WsScreenshot "AUTHOR", "CONTRIBUTORS", and "SPONSORS" as listed above.
This library is free software and may be distributed under the same terms as perl itself.
The most current version of App::pq can be found at https://github.com/symkat/App-pq
To install App::pq, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::pq
CPAN shell
perl -MCPAN -e shell install App::pq
For more information on module installation, please visit the detailed CPAN module installation guide.