I would like to provide a easy way for an end user to provide output configuration to my script.
for example if I have a few var's
my ($first_name, $last_name, $middle_name);
[/code]
I was thinking of having them just put in the configuration file (that they control)
ex:
Output=$last_name, $middle_name, $first_name;
or
Output = $first_name - $middle_name - $last_name;
I could then read that in, and eval it to provide that output in the format they specified?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
for example if I have a few var's
my ($first_name, $last_name, $middle_name);
[/code]
I was thinking of having them just put in the configuration file (that they control)
ex:
Output=$last_name, $middle_name, $first_name;
or
Output = $first_name - $middle_name - $last_name;
I could then read that in, and eval it to provide that output in the format they specified?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
![[noevil] [noevil] [noevil]](/data/assets/smilies/noevil.gif)
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;