Graphics-Asymptote
view release on metacpan or search on metacpan
lib/Graphics/Asymptote.pm view on Meta::CPAN
expect it to close. Here's what I mean:
#!/usr/bin/perl
use Graphics::Asymptote;
$asy = Graphics::Asymptote->new(verbose => 1);
undef $asy;
This (complete) script simply creates and destroys the pipe. On my machine,
the output of this looks like:
david@davids-desktop:~$ ./asytest.pl
********** To Asymptote **********
//Quitting Asymptote
**********************************
david@davids-desktop:~$
The business about quitting is useful, especially if you find your interpreter
quits unexpectedly, but suppose you know when your pipe is going away and want
to remove the extra line noise. To avoid that, set the verbosity to 0
before C<undef>ing your pipe or letting it go out of scope, like this:
#!/usr/bin/perl
use Graphics::Asymptote;
$asy = Graphics::Asymptote->new(verbose => 1);
( run in 0.207 second using v1.01-cache-2.11-cpan-299005ec8e3 )