File: README

package info (click to toggle)
libalt-base-perl 0.2-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 160 kB
  • sloc: perl: 173; makefile: 2
file content (52 lines) | stat: -rw-r--r-- 1,536 bytes parent folder | download | duplicates (4)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
NAME
    Alt::Base - Base class for alternate module

VERSION
    version 0.02

SYNOPSIS
     # in your Alt/Foo/Bar/phrase.pm:
     package Alt::Foo::Bar::phrase;
     use base qw(Alt::Base);
     1;

     # customize options:
     package Alt::Foo::Bar::phrase;
     use base qw(Alt::Base);
     our %ALT = (check => 0, ...);
     1;

DESCRIPTION
    The Alt::Base class provides common functionalities for an alternate
    module. For more information about the Alt concept, please refer to Alt.

    Alt::Base defines an "import()" routine which checks for options in
    %ALT. These options are:

    *   check => BOOL (default: 1)

        If set to true (the default), will perform several things. First,
        check that the alternate module is indeed named
        "Alt::<<Original::Module>::<phrase>". Then, load "Alternate::Module"
        and check that the package variable $ALT is defined with the value
        of "phrase". This is to ensure that we are loading the correct
        module, and sometimes we do want to make sure about this. The wrong
        module can be loaded, for example if user reinstalls the original
        distribution or another alternate distribution.

        Will die upon failure.

    *

SEE ALSO
    Alt

AUTHOR
    Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2012 by Steven Haryanto.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.