in reply to Re^2: Array values reformation
in thread Array values reformation
Ahh...
Do they all have the same pathname and extension? If so, then just write "../data/texts/$file.txt". However, I think I might have a better structure for the popup menu.
This way, your labels don't have to be the same as your values. Now your user sees pretty labels, while your param("choice") will still return full pathnames.$i = 0; foreach (@files) { %label_hash{$_} = $display_names[$i++]; } #Have to have a hash in a -labels field, print popup_menu(-name => 'choice", -values => \@files, -labels => %la +bel_hash)
Peace,
LassiLantar
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Array values reformation
by b10m (Vicar) on Jul 24, 2004 at 20:46 UTC | |
by LassiLantar (Monk) on Jul 24, 2004 at 21:09 UTC | |
by b10m (Vicar) on Jul 24, 2004 at 21:15 UTC | |
| |
| |
| A reply falls below the community's threshold of quality. You may see it by logging in. |