On 1 May 2002, rory oconnor wrote: > If I were to hard-code these declarations, I would have about 40 lines > that look like: > > $order_id = $session->get_query_value('order_id'); > $customer_id = $session->get_query_value('customer_id'); > $bill_prefix = $session->get_query_value('bill_prefix'); > $bill_fname = $session->get_query_value('bill_fname'); > > The $session-> bit is a function that grabs data of the same name as my > fieldnames from an outside sessionfile.
And is there a reason to just not stick it all into a hash? my %field_values = (); foreach $i (@fieldlist) { $field_values{$i} = $session->get_query_value('$i'); } -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ What does it mean if there is no fortune for you? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]