in reply to Re: Re: using strict and a config file
in thread using strict and a config file
etc... And in your actual program, do:Package MailConfig; use strict; @MailConfig::fields=qw /to from subject message/;
This is the most readable solution, as you know where to look for when you want to change a variable.use strict; require "config_mail.pl"; ...your print code... <tr> <td>From:</td> <td><select name='$MailConfig::fields[1]" size="1"> more code... </select></td> </tr> <tr> <td>Subject:</td> <td><input type="text" name="$MailConfig::fields[2]" size="24"></t +d>
Senior Consultant
IT Masters, Belgium
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 4: using strict and a config file
by tilly (Archbishop) on Nov 12, 2001 at 14:30 UTC |