| 1 | package Gnuplot::Builder; | ||
| 2 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use parent qw(Exporter); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use Gnuplot::Builder::Script; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 4 | ▶ | use Gnuplot::Builder::Dataset; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 4 | ▶ | use Gnuplot::Builder::Process; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | our $VERSION = "0.33"; | |
| 10 | |||
| 11 | 4 | our @EXPORT = our @EXPORT_OK = qw(gscript gfunc gfile gdata ghelp gwait); | |
| 12 | |||
| 13 | 7 | ▶ | sub gscript { |
|
Subroutine
gscript: called CC=1 SCAR=0.0
Pod
documented
| |||
| 14 | 7 | return Gnuplot::Builder::Script->new(@_); | |
| 15 | } | ||
| 16 | |||
| 17 | 2 | ▶ | sub gfunc { |
|
Subroutine
gfunc: called CC=1 SCAR=0.0
Pod
documented
| |||
| 18 | 2 | return Gnuplot::Builder::Dataset->new(@_); | |
| 19 | } | ||
| 20 | |||
| 21 | 2 | ▶ | sub gfile { |
|
Subroutine
gfile: called CC=1 SCAR=0.0
Pod
documented
| |||
| 22 | 2 | return Gnuplot::Builder::Dataset->new_file(@_); | |
| 23 | } | ||
| 24 | |||
| 25 | 1 | ▶ | sub gdata { |
|
Subroutine
gdata: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 1 | return Gnuplot::Builder::Dataset->new_data(@_); | |
| 27 | } | ||
| 28 | |||
| 29 | 0 | ▶ | sub ghelp { |
|
Subroutine
ghelp: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 30 | 0 | my (@help_args) = @_; | |
| 31 | 0 | ▶ | return Gnuplot::Builder::Process->with_new_process(do => sub { |
|
Subroutine
__ANON__: not called CC=2 SCAR=17.9
| |||
| 32 | 0 | my $writer = shift; | |
| 33 | 0 | $writer->("help"); | |
| 34 | 0 | foreach my $arg (@help_args) { | |
| 35 | 0 | $writer->(" $arg"); | |
| 36 | } | ||
| 37 | 0 | $writer->("\n"); | |
| 38 | 0 | }); | |
| 39 | } | ||
| 40 | |||
| 41 | 1 | ▶ | sub gwait { |
|
Subroutine
gwait: called CC=1 SCAR=0.0
Pod
documented
| |||
| 42 | 1 | return Gnuplot::Builder::Process->wait_all(); | |
| 43 | } | ||
| 44 | |||
| 45 | 4 | 1; | |
| 46 | __END__ | ||