[web] help : transformer un fichier perl en script CGi !
Voilà nous sommes débutantes et nous avons un problème.
Quand on execute le script perl suivant il marche:
Code:
1 2 3 4
| use XML::Simple;
my $opt= XMLin();
print "$opt"; |
avec le fichier xml suivant:
Code:
1 2 3 4 5 6 7 8 9
| <opt>
<host name="romulus">
<addr>10.0.0.101</addr>
<addr>10.0.1.101</addr>
</host>
<host name="remus">
<addr>10.0.0.102</addr>
</host>
</opt> |
Puis ensuite on l econvertit en un script CGI suivant:
Code:
1 2 3 4 5 6 7
| #!/usr/bin/perl
use CGI qw(standard);
use XML::Simple;
my $opt= XMLin('test2.xml');
print "$opt"; |
et CA ne mache pas.
Le problème vient-il du fichier .cgi ?? Est-il mal écrit??
merci.