aconite has asked for the wisdom of the Perl Monks concerning the following question:
sub write_form_info { open (FORM, ">>$form_info_path") || die ("I am sorry, but I was unable + to open the file $form_info_path"); foreach $sortedkeys (@sortedkeys) { $sortedkeys =~ s/^\d*\)\s*//; $sortedkeys =~ s/required-//; ($name, $answer) = split (/\|/, $sortedkeys); print FORM "$name -- $answer\n"; } print FORM "\n"; close (FORM); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Key/Value Problem
by arturo (Vicar) on Apr 19, 2001 at 19:12 UTC | |
|
Re: Key/Value Problem
by suaveant (Parson) on Apr 19, 2001 at 18:10 UTC | |
by aconite (Initiate) on Apr 19, 2001 at 18:23 UTC | |
by suaveant (Parson) on Apr 19, 2001 at 18:34 UTC | |
by aconite (Initiate) on Apr 19, 2001 at 22:45 UTC | |
by suaveant (Parson) on Apr 19, 2001 at 23:00 UTC | |
|
Re: Key/Value Problem
by Chady (Priest) on Apr 19, 2001 at 18:41 UTC |