ryan has asked for the wisdom of the Perl Monks concerning the following question:
Also, what is the correct name for the values either side of the '=>' so I can refer to these things correctly in the future?# how I do it now $tmpl->param(flag_location => "foo $var bar"); # I have not used hashes here to make it easier # to see the two things I am trying to do. # how I want to do it my $param = 'flag_location'; $tmpl->param($param => "foo $var bar"); # or better still my $param = 'location'; $tmpl->param("flag_$param" => "foo $var bar");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Value Pair Assignment
by Fletch (Bishop) on Apr 18, 2002 at 07:34 UTC | |
by ryan (Pilgrim) on Apr 18, 2002 at 07:38 UTC | |
|
Re: Value Pair Assignment
by Biker (Priest) on Apr 18, 2002 at 07:38 UTC | |
|
Re: Value Pair Assignment
by Biker (Priest) on Apr 18, 2002 at 07:29 UTC | |
|
Re: Value Pair Assignment
by mce (Curate) on Apr 18, 2002 at 08:01 UTC | |
by Anonymous Monk on Apr 18, 2002 at 17:38 UTC | |
by ryan (Pilgrim) on Apr 18, 2002 at 08:17 UTC |