Re: inserting a variable server name into code

2013-12-26 Thread Rick T
Many thanks to Andy Bach, Janek Schleicher, Diab Jerius, and David Precious for you helpful comments on my post. My problem is solved and, more importantly, I learned important stuff from all of you! Rick Triplett -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,

Re: inserting a variable server name into code

2013-12-20 Thread Andy Bach
On Fri, Dec 20, 2013 at 1:46 AM, Janek Schleicher wrote: > * if you lookup perldoc use, > you'll see the use Module is equivalent to > BEGIN { require Module } > and the BEGIN blocks are run first of all. > And so, as it's really a code block, you can, if you want, define vars there BEGIN {

Re: inserting a variable server name into code

2013-12-20 Thread Janek Schleicher
Am 19.12.2013 19:27, schrieb Rick T: The following three lines are from a program that works fine for me. # Choose template file use constant TMPL_FILE => "/big/dom/xoldserver/www/templates/open_courses3.html"; my $tmpl = new HTML::Template( filename => TMPL_FILE ); I w

Re: inserting a variable server name into code

2013-12-20 Thread Diab Jerius
On Thu, 19 Dec 2013 12:27:09 -0600, Rick T wrote: > The following three lines are from a program that works fine for me. > > # Choose template file > use constant TMPL_FILE => > "/big/dom/xoldserver/www/templates/open_courses3.html"; my $tmpl = new > HTML::Template( filen

Re: inserting a variable server name into code

2013-12-19 Thread David Precious
On Thu, 19 Dec 2013 12:27:09 -0600 Rick T wrote: > I wanted to make the program more portable, which means changing the > name of the server. My idea was to put the following > > my $server = “newserver” > > at the beginning of the code, then have the later lines of code use > this string