Re: Including files to pick up variables

2004-02-13 Thread Robin Sheat
On Fri, Feb 13, 2004 at 04:27:08PM +1300, Robin Sheat wrote: > Hey there, what is the best way of including a Perl so that the contents > of it override the existing variables. For example, I have: With all the help of those who replied ;) I worked it out. For the benefit of others: > my $commen

Including files to pick up variables

2004-02-12 Thread Robin Sheat
Hey there, what is the best way of including a Perl so that the contents of it override the existing variables. For example, I have: ... my $comment = "Default\n"; my $resDir = "results"; ... if (@ARGV) { my $c = shift; $config = "testing/$c.pm"; unless (my $ret = do $config) {