Gossamer Forum
Home : General : Perl Programming :

another perl question

Quote Reply
another perl question
hi andy,
you helped me with something similar before. i have a text file that contains the following lines:
Code:

%db_radio_fields = ( Graphics => 'Yes,No,Line,No Ad,Generic',Red_Flag => 'Yes,No',Jumbo => 'Jumbo,no',Table => 'Yes,No');

# Select fields. Field name => 'comma seperated list of drop down options'.
%db_select_fields = (
'AD_Size' => 'Line,Business Card,Quarter Page,Half Page,Full Page,No Ad,Inside Front Cover,Inside Back Cover,Back Cover,3x6 Banner,4x8 Banner,Digital Banner,Jumbo,Table',
'Art' => '--------Kenny-------,Pickup new art,------For Reps------,Use art on File,Waiting for art,Scott will make Ad,ASE will make Ad,No Ad,Line,Generic,---Art Department---,Working on art,Completed,Do not have art,---Banner---,We have the Banner,We do not have the Banner,The customer has the Banner,Use art on File',
'Graphics' => 'Yes,No,Line,xxx,Generic,Cancel,Retrieve,Change',
'Proof' => 'Art Dept to send Proof,Rep to send Proof,Proof Ready,Proof out,Approved,No Proof needed,Wrong Pagination,Poor Quality',
'Bump' => 'Yes'
);
i need to read the file and find the line that starts with %db_select_fields. the easiest thing for me would be to make %db2_select_fields = %db_select_fields so i can reference it the same way in a different database. is this possible? if not, how can i have a fieldname Art with the select options listed above?
thanks!
Subject Author Views Date
Thread; hot thread another perl question delicia 20698 Sep 6, 2016, 1:58 PM
Thread; hot thread Re: [delicia] another perl question
Andy 20198 Sep 6, 2016, 11:39 PM
Thread; hot thread Re: [Andy] another perl question
delicia 20183 Sep 7, 2016, 8:41 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20185 Sep 7, 2016, 8:46 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20225 Sep 7, 2016, 8:58 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20178 Sep 7, 2016, 9:01 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20218 Sep 7, 2016, 9:10 AM
Post; hot thread Re: [delicia] another perl question
Andy 20197 Sep 7, 2016, 9:22 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20208 Sep 7, 2016, 9:04 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20161 Sep 7, 2016, 9:20 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20152 Sep 7, 2016, 9:24 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20167 Sep 7, 2016, 9:32 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20140 Sep 7, 2016, 9:36 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20181 Sep 7, 2016, 9:46 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20138 Sep 7, 2016, 10:27 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20137 Sep 7, 2016, 10:56 AM
Post; hot thread Re: [delicia] another perl question
Andy 20153 Sep 7, 2016, 11:04 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20162 Sep 7, 2016, 11:10 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20155 Sep 7, 2016, 11:17 AM
Thread; hot thread Re: [delicia] another perl question
delicia 20181 Sep 7, 2016, 11:19 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20121 Sep 7, 2016, 11:24 AM
Thread; hot thread Re: [Andy] another perl question
delicia 20101 Sep 7, 2016, 12:04 PM
Thread; hot thread Re: [delicia] another perl question
Andy 20114 Sep 7, 2016, 12:06 PM
Thread; hot thread Re: [Andy] another perl question
delicia 5367 Sep 7, 2016, 12:09 PM
Post; hot thread Re: [delicia] another perl question
delicia 5418 Sep 7, 2016, 1:17 PM
Thread; hot thread Re: [delicia] another perl question
Andy 5404 Sep 7, 2016, 11:06 PM
Thread; hot thread Re: [Andy] another perl question
delicia 5396 Sep 8, 2016, 7:05 AM
Thread; hot thread Re: [delicia] another perl question
Andy 5394 Sep 8, 2016, 7:26 AM
Thread; hot thread Re: [Andy] another perl question
delicia 5388 Sep 8, 2016, 7:43 AM
Post; hot thread Re: [delicia] another perl question
Andy 5381 Sep 8, 2016, 7:47 AM
Thread; hot thread Re: [delicia] another perl question
Andy 20122 Sep 7, 2016, 11:21 AM
Post; hot thread Re: [Andy] another perl question
delicia 20120 Sep 7, 2016, 11:23 AM