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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing Perl configuration files for GUI editor

Status
Not open for further replies.

Andyfives

Programmer
Feb 22, 2002
46
DK
Hello people,

I wonder if there is someone out there who could possibly help me. I am still quite a novice at VB.net but have been given this task and feel .net is the way to progress.

We have a web booking system written in perl. There are configuration files in the following sample format...

Code:
%SKY_PREFS		= (

CITY_DATA	=> { 
CITIES => { 
EDI => {
	name			=> 'Edinburgh',
	zulu_dst		=> 1,
	zulu			=> 0,
	valid_orig		=> 'true',
	valid_dest		=> 'true',					
	routes			=> [ 'ARN', 'CPH' ],
	currency		=> 'GB',
	country			=> 'UK',
},
LGW => {
	name			=> 'London (Gatwick)',
	zulu_dst		=> 1,
	zulu			=> 0,
	valid_orig		=> 'true',
	valid_dest		=> 'true',
	routes			=> [ 'AAL', 'ARN', 'BLL', 'CPH' ],
	currency		=> 'GB',
	country			=> 'UK',
},
},
},

CURRENCY_DATA	=> { 
DEFAULT_CURRENCY_CODE	=> "EU",
CURRENCIES	=> { 
DK => {
	description		=> 'Danish Kroner (DKK)',
	prefix			=> '',
	suffix			=> 'DKK',
	decimal			=> ',',
	thousands		=> '.',
  },
GB => {
	description		=> 'British Pounds',
	prefix			=> '',
	suffix			=> 'GBP',
	decimal			=> ',',
	thousands		=> '.',
},
},

);	# End %SKYLIGHTS_PREFS
1; # Return "true"


There are many of these structured files and they are concerned with languages, preferences, text, graphics etc..

I want to set this up in a GUI where users can amend the contents of these files using a type of propertyGrid control interface or something...

My question is this:- Is there an easy way using vb.net to transform this type of data structure into something more workable...?

Thank you for your time and any help would be much appreciated..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top