V
Vikram
I am running Active Perl on windows XP, I have created a simple cgi-bin
script, which takes the input from a system command, lists all the
files in a directory and stores it in a array:
@array = split(/\n/, `dir . /B`);
for($i=0;$i<@array;$i++) {
print "<tr><td>$array[$i]</td></tr>";
}
I have the script printing each of the filename as output to a html,
strangely, none of the array elements gets printed out on the html
page, however they do if I run the script on the command line.
What is wrong here?
Thanks
Vikram
script, which takes the input from a system command, lists all the
files in a directory and stores it in a array:
@array = split(/\n/, `dir . /B`);
for($i=0;$i<@array;$i++) {
print "<tr><td>$array[$i]</td></tr>";
}
I have the script printing each of the filename as output to a html,
strangely, none of the array elements gets printed out on the html
page, however they do if I run the script on the command line.
What is wrong here?
Thanks
Vikram