File: Dummy.pm

package info (click to toggle)
libexporter-lite-perl 0.09-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 96 kB
  • sloc: perl: 200; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 343 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package Dummy;

use Exporter::Lite;
@EXPORT      = qw(&foo $foo);
@EXPORT_OK   = qw(&bar my_sum $bar);
$VERSION = 0.5;

$foo = 'foofer';
sub foo { 42 }

$bar = 'barfer';
sub bar { 23 }

sub my_sum (&@) { 
    my($sub, @list) = @_;

    foreach (@list) { $sum = $sub->($_, $sum || 0); }
    return $sum;
}

sub car { "yarblockos" }

return 23;