Help for this page

Select Code to Download


  1. or download this
    # The 'source' file ("constants.plx")
    use constant {
    ...
        BAR => 2,
        QUX => 3
    };
    
  2. or download this
    #!/usr/bin/perl -wl
    
    BEGIN { do "constants.plx"; }
    
    print "Foo: ". FOO. "\nBar: ". BAR. "\nQux: ". QUX;
    
  3. or download this
    Foo: 1
    Bar: 2
    Qux: 3