Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- eperl help: multi-pass processing
June 3, 2008, 11:20 pm
rate this thread
please let me know.
One of our systems uses a set of eperl files to hold our configuration
parameters. Multiple passes are done on the configuration file to make
sure that all eperl is interpolated. The problem is that sometimes the
printout of a variable gets moved to before the assignment of the
variable (don't ask why). For example:
PARAM1 = <:=$some_variable:>
Let's assume this can't be helped. On the first pass, the first line
is left alone because that variable has no value, but the second block
of eperl is deleted (since it doesn't print anything). We *do* have
the variable with the correct value in memory, but it doesn't help
much since we're past the point where it's used.
Two possible solutions (that I don't know how to implement):
1. Print out the values of all variables in memory into a file and
load them before starting the next pass of eperl
2. Somehow make eperl go back and interpolate the file again without
Sorry again for being OT.
Thanks in advance,
- » Automatically extracting MS Outlook 2007 calendar entries with perl (on WIndows)
- — Previous thread in » PERL Discussions