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

The file State.xml is present in the same folder as the HTML. I did change the path as below:

my $xp = XML::XPATH->new(filename => 'D://New folder//State.xml');

But it did not work. Can you help to do it?

Replies are listed 'Best First'.
Re^5: Perl Script to populate Dropdown box from XML Attributes
by Corion (Patriarch) on Nov 23, 2016 at 16:55 UTC

    That's not how HTTP resources work. I recommend you learn about HTTP, HTML and how it matters where a script is run.

Re^5: Perl Script to populate Dropdown box from XML Attributes
by marto (Cardinal) on Nov 24, 2016 at 12:25 UTC

    I'm surprised anyone is trying to use PerlScript in production anymore. The documentation says:

    "Client-side Perlscript should only be used if you can control the configuration of the computers on which it will be run. If your goal is to build an application that will be used by a large number of users, server-side PerlScript is considerably more practical."