in reply to Re^4: Perl Script to populate Dropdown box from XML Attributes
in thread Perl Script to populate Dropdown box from XML Attributes

You still need to learn about HTTP and HTML and how they interact.

The file you want to read here:

my $xp = XML::XPath->new(filename => 'State.xml');

will be read on the client, because your code runs on the client.

But that file doesn't exist on the client, or even if it exists, you also need an absolute path to it that is readable from the client.

Also, the version of Perl you have "on the client" above is Perl 5.6.1 (reaally ancient), and it does not support use feature 'say';.

I feel your whole approach is misguided as you could implement all of the above without the reliance on PerlScript by simply producing the appropriate HTML server-side, using XML::XPath and Template::Toolkit for example.