Gerald Richter wrote:
Yeah, it was a typo...
> Shouldn't it be $STATES{$STATE_ABBREVIATIONS[$row]}{name} ?
>
> [- @STATE_ABBREVIATIONS = sort keys %STATES -]
>
> [+
> $STATES{$abr}{name}+]
>
Works like a champ! Thanks Gerald.
--
__
> yes. i left out that part. i actually had abandoned most of the concepts
> related to that. but i will include them here for completeness.
>
> I was thinking that the ID would be available
> in a variable in embperl such as $id. subroutines could then use it
> to determine output. [...]
For
>
> I can get a select list to work using the vars @STATE_ABBREVIATIONS,
> @STATE_NAMES which are retrieved from %STATES. To retrieve a value from
> this hash I would enter:
> $STATES{'NY'}{'name'} or $STATES{'NY'}{'code'}...
>
> If I don't care about the list order then the following works fine:
from your own example - don't you need?
$STATES{$STATE_ABBREVIATIONS[$row]}{'name'}
cliff rayman
genwax.com
"Erich L. Markert" wrote:
>
> I attempted to do: $STATES{$STATE_ABBREVIATIONS[$row]} for the list
> display name but it came back empty. Can something like this be done by
> HTMLEmbperl
I can get a select list to work using the vars @STATE_ABBREVIATIONS,
@STATE_NAMES which are retrieved from %STATES. To retrieve a value from
this hash I would enter:
$STATES{'NY'}{'name'} or $STATES{'NY'}{'code'}...
If I don't care about the list order then the following works fine:
$S
Gerald Richter wrote:
>
>
> Another possibility would be fixing the old and new syntax:
>
> <%+ $ref->[$row]{$fieldvar} +%>[# EXAMPLE TEXT #]
>
> this is a little bit short and (maybe) easier to read (but has at least four
> characters ([##])
>
this still would not work for my unit of measure e
Cliff,
>
>
> we are using dreamweaver at our site, and it does not
> mix well with embperl. since dreamweaver does not
> recognize the embperl tags, it renders them in the gui
> design window as text.
>
Yes, that is the intented way it should do...
>
> using a standard tag such as <%
> and coup