[Purdue-pm] Libraries have me befuddled

Joe Kline gizmo at purdue.edu
Tue Sep 3 06:32:03 PDT 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave,

in my slapdash cgi web app abomination I used:


package spaghetti_code;

use strict;
use warnings;

use v5.12;

use Sub::Exporter
  -setup => {
    exports => [ qw(
                    ghod_awful
                    long_list
                    of_subs
    )
    ]
  };
# end of exports


In the scripts that use this module I have:

use spaghetti_code qw(:all);

Although I think I could just pull in individual subs if I wanted.

https://metacpan.org/module/Sub::Exporter

The upside is that the current Pumpking is the maintainer.

The downside is that it isn't core.

joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlIl5NMACgkQb0mzA2gRTplJOACfairG1DrI71R+5Mtn5d0GqRl8
tnYAn3KFHPcRllSyuhsGpPY3DcT6yvP/
=IRhs
-----END PGP SIGNATURE-----


More information about the Purdue-pm mailing list