File: gsl_repl

package info (click to toggle)
libmath-gsl-perl 0.45-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 192,156 kB
  • sloc: ansic: 895,524; perl: 24,682; makefile: 12
file content (26 lines) | stat: -rwxr-xr-x 689 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/perl -w
use strict;
use Devel::REPL;

package Devel::REPL::Plugin::GSL;
use Devel::REPL::Plugin;
sub BEFORE_PLUGIN
{
    package Devel::REPL::Plugin::Packages::DefaultScratchpad;
    use aliased 'Math::GSL::Matrix';
    use aliased 'Math::GSL::Vector';
    use aliased 'Math::GSL::RNG';
    use aliased 'Math::GSL::QRNG';
    use Math::GSL::SF qw/:all/;
    use Math::GSL::CDF qw/:all/;
    use Math::GSL::Statistics qw/:all/;
    use Math::GSL::Const qw/:all/;
    use Data::Dumper;
    package Devel::REPL::Plugin::GSL;
}

# FancyPrompt
my @plugins = qw(GSL History LexEnv Colors Packages Timing);
my $repl = Devel::REPL->new;
$repl->load_plugin($_) for @plugins;
$repl->run;