Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User configurable output 1

Status
Not open for further replies.

travs69

MIS
Dec 21, 2006
1,431
US
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]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Thanks!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[noevil]
Travis - Those who say it cannot be done are usually interrupted by someone else doing it; Give the wrong symptoms, get the wrong solutions;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top