santellij has asked for the wisdom of the Perl Monks concerning the following question:
This is assuming that any tag has the value for that element in a variable by the same name. I mean, $year = "1999"; is already set. I can't seam to get the value for the tag I'm trying to write. Here's my method but what do I use to access $year (for this example).<year>1999</year>
sub writeBasicTag { my $tag = $_[0]; $writer->startTag($tag); $writer->characters(XXX); $writer->endTag($tag); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: indirectly accessing variable
by davorg (Chancellor) on Jul 11, 2003 at 15:51 UTC | |
by santellij (Novice) on Jul 11, 2003 at 16:12 UTC | |
|
Re: indirectly accessing variable
by tall_man (Parson) on Jul 11, 2003 at 15:53 UTC | |
|
Re: indirectly accessing variable
by Zaxo (Archbishop) on Jul 11, 2003 at 16:01 UTC | |
|
Re: indirectly accessing variable
by The Mad Hatter (Priest) on Jul 11, 2003 at 15:59 UTC | |
by santellij (Novice) on Jul 11, 2003 at 16:25 UTC |