Joel,
I have to disagree. An array of hashes is really not necessary b/c I do not need to lookup or reference any element by name. What is in the elements is H02043-H02999 for example.
All I need is once the user selection is stored in my tape_import array I need to splice these selections out of the main array and present an updated main array or a whole new array.
Here is my code thus far:
sub import99
{
print $q->h3 ({-style=>'Color:#0000CC'},'Please Choose 9940 Tape Ran
+ge for Import.'),
$q->h3 ({-style=>'Color:#CC3300'},'Note: Inject Tapes via Acsls Prior
+To Import!');
my @H99tapes =('H02043' .. 'H02999'); ##--##MAINARRAY
my @UserH99tapes = @H99tapes;##--## USER SELECTIONS
print $q->scrolling_list('htapes99',[@H99tapes],[$H99tapes[0]],10,-mul
+tiple=>'true',my %attributes),
$q->submit('form','Submit'),
$q->reset;
##--BEGINIMPORT
##--## AS H NUMBERS ARE SELECTED, REMOVE SUBMITTED ELEMENTS ##--## FRO
+M USER ARRAY
##--## REPOPULATE LIST INTO NEW ARRAY,PRINT NEW ARRAY
my @tape_imports = $q->param(htapes99);
##--## SELECTED BY USER
my $tape_count = scalar @tape_imports;
$[=0;
foreach (@tape_imports)
{
splice (@H99tapes,0,$tape_count,@H99tapes)
}
} ##--## END ROUTINE import99 ##--##
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.