Help for this page

Select Code to Download


  1. or download this
    use constant {
        NULL => 0,
        EINS => 1,
        ZWEI => 2,
    };
    
  2. or download this
    sub NULL { return 0; }
    sub EINS { return 1; }
    sub ZWEI { return 2; }
    
  3. or download this
    my %english_translation = (
        NULL    => "Zero",
        'EINS'  => "One",
        ZWEI()  => 'Two',
    );
    
  4. or download this
    my %english_translation = (
        NULL, "Zero",
        EINS, "One",
        ZWEI, 'Two',
    );