Skip to content

Latest commit

 

History

History
40 lines (33 loc) · 1.04 KB

_doc_FMTEYEWTK_style_slide34.md

File metadata and controls

40 lines (33 loc) · 1.04 KB

{ "date" : "1998-01-01T00:00:00-08:00", "thumbnail" : null, "slug" : "/doc/FMTEYEWTK/style/slide34.html", "description" : null, "image" : null, "categories" : "programming-languages", "authors" : [ "tom-christiansen" ], "title" : "Perl Style: Configuration Files", "draft" : null, "tags" : [] }

  • If you need a config file, load it with do.

  • This gives you full Perl power.

        # from PCB 8.16
        $APPDFLT = "/usr/local/share/myprog";
        do "$APPDFLT/sysconfig.pl";
        do "$ENV{HOME}/.myprogrc";
    
        #in config file
        $NETMASK = '255.255.255.0';
        $MTU     = 0x128;
        $DEVICE  = 'cua1';
        $RATE    = 115_200;
    

Forward to Functions as Data
Back to Data-Oriented Programming
Up to index

Copyright © 1998, Tom Christiansen All rights reserved.