blib/lib/App/pq.pm untested

filter: SCAR -
1 package App::pq;
2  
3 1;
4  
5 =head1 NAME
6  
7 App::pq - Like jq and gq, but with Perl
8  
9 =head1 SYNOPSIS
10  
11 With no arguments, dump the JSON data structure from STDIN as a Perl data structure.
12  
13 $ echo '{"foo":[1,2,3],"bar":"blee"}' | pq
14 $VAR1 = {
15 'bar' => 'blee',
16 'foo' => [
17 1,
18 2,
19 3
20 ]
21 };
22  
23 With an argument, process the argument as code with $j as the perl data structure.
24  
25 $ echo '{"foo":[1,2,3],"bar":"blee"}' | pq 'print join "\n", keys %$j'
26 foo
27 bar
28  
29 =head1 AUTHOR
30  
31 Kaitlyn Parkhurst (SymKat) I<E<lt>symkat@symkat.comE<gt>> ( Blog: L<http://symkat.com/> )
32  
33 =head1 COPYRIGHT
34  
35 Copyright (c) 2022 the WebService::WsScreenshot L</AUTHOR>, L</CONTRIBUTORS>, and L</SPONSORS> as listed above.
36  
37 =head1 LICENSE
38  
39 This library is free software and may be distributed under the same terms as perl itself.
40  
41 =head1 AVAILABILITY
42  
43 The most current version of App::pq can be found at L<https://github.com/symkat/App-pq>
44