Skip to content

Instantly share code, notes, and snippets.

@run4flat
Created October 16, 2012 21:10
Show Gist options
  • Save run4flat/3902086 to your computer and use it in GitHub Desktop.
Save run4flat/3902086 to your computer and use it in GitHub Desktop.
Imagine using PDL::Graphics::Prima::Simple as...
use strict;
use warnings;
sub my_plot {
croak("Expected key/value pairs, but got an odd number of arguments to pot()")
if @_ % 2 == 1;
print "About to plot!\n";
PDL::Graphics::Prima::Simple::default_plot(@_);
}
use PDL::Graphics::Prima::Simple plot => \&my_plot;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment