Leser: 21
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package MyHelpers; use strict; use warnings; use base qw(Exporter); our @EXPORT_OK = qw( foo bar ); sub foo { return "foo"; } sub bar { return "bar"; } 1;
1 2 3 4 5 6
#! /usr/bin/perl use strict; use warnings; use MyHelpers qw( foo ); print foo();
1 2 3 4 5 6 7
package mein_test; use strict; use warnngs; sub machwas { print "OK\n"; } 1;
1 2 3 4 5 6
#!/usr/bin/perl use strct; use warnings; use mein_test; mein_test::machwas();