in reply to Using data at the end of a program file
However, you could create a temporary file from a "here" document:
Remember you need to add in the unlink somewhere to delete the tempfile; you need to decide where it should go depending on your code.open TEMPFILE, ">$temp_filename"; print << END_OF_HEREFILE .... ... write your config file stuff here .... ... END_OF_HEREFILE close TEMPFILE; POE::Component::Logger->spawn(ConfigFile => $temp_filename); ... unlink ($temp_filename);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Using data at the end of a program file
by carcassonne (Pilgrim) on Feb 21, 2006 at 14:46 UTC |