Re: Human readable flatfiles

2000-06-01 Thread Perrin Harkins
Philip Mak wrote: > I can't seem to get "do" to work. I did this: > > my $series_name; > do "series_$series.i"; # <-- note include filename depends on a variable > print "$series_name\n"; Your lexical ("my") variable in the same scope is taking precedence, and the "do' is not allowed to see lexi

Re: Human readable flatfiles

2000-06-01 Thread Philip Mak
On Wed, 31 May 2000, Perrin Harkins wrote: Thanks for the reply. I have a few problems though: > You need to read up a little on modules and "require" in Perl5. > > The quick and dirty solution is to use "do" instead of require. That will > solve your immediate problem, but you'll still be rea

Re: Human readable flatfiles

2000-05-31 Thread Perrin Harkins
> I have a perl (non-modperl) program that needs some input data. Currently, > it reads in the data by "require"ing another perl script that has > statements to set the variables (as global variables). I did it this way > so that I can easily edit the include file if I want to change values, > and

Human readable flatfiles

2000-05-31 Thread Philip Mak
Hello, I would like to ask a question about maintaining human readable flatfiles in general. I have a perl (non-modperl) program that needs some input data. Currently, it reads in the data by "require"ing another perl script that has statements to set the variables (as global variabl