Hi Everyone,
As I am having liitle bit perl knowledge,I was trying to read the config file contents and put the values into some variables.
Config File Contents:
Needed Output:
[CODE=perl]
$p1=Sample Report Sheet
$p2=red
$p3=A
$p4=D
$p5=Sample Subtitle1 Sheet
$p6=red
$p7=A
$p8=B
$p9=Sample Subtitle2 Sheet
$p10=red
$p11=C
$p12=D
[/CODE]
Pls do help me on this at the earliest.
As I am having liitle bit perl knowledge,I was trying to read the config file contents and put the values into some variables.
Config File Contents:
Code:
#Header:Putting Header on Excel Sheet Header_Text=Sample Report Sheet Header_Color=red Header_Merge_Info=A:D #Subheader1:Putting Subheader1 SubHeader1_Text=Sample Subtitle1 Sheet SubHeader1_Color=red SubHeader1_Merge_Info=A:B #Subheader2:Putting Subheader2 SubHeader1_Text=Sample Subtitle2 Sheet SubHeader1_Color=red SubHeader1_Merge_Info=C:D
[CODE=perl]
$p1=Sample Report Sheet
$p2=red
$p3=A
$p4=D
$p5=Sample Subtitle1 Sheet
$p6=red
$p7=A
$p8=B
$p9=Sample Subtitle2 Sheet
$p10=red
$p11=C
$p12=D
[/CODE]
Pls do help me on this at the earliest.
Comment