in reply to lib
That way you can define things at the top of your file and use the defined values through your code. See perlman:perlrun for more information about that switch.#!/usr/bin/perl -P #define MYPATH "/WEBDEVELOPMENT/cgi-bin/postcode.txt" read_in_file(); sub read_in_file { open(INPUTFILE, "<".MYPATH."postcode.txt"); }
|
|---|