Help for this page

Select Code to Download


  1. or download this
    # my-constants.PL
    
    open my $pm, ">", "my-constants.pm" or die "Can't open my-constants.pm
    +: $!";
    ...
    FOO 1
    BAR 2
    BAZ 3
    
  2. or download this
    # Generated content follows. Edit my-constants.PL instead.
    use constant 'FOO' => 1;
    use constant 'BAR' => 2;
    use constant 'BAZ' => 3';
    1; # End of generated my-constants.pm
    
  3. or download this
    /* Generated content follows. Edit my-constants.PL instead. */
    #define FOO 1
    #define BAR 2
    #define BAZ 3
    /* End of generated my-constants.h */