T
Tim
I'm just starting out with Perl and I have two questions:
1) I want to be able to read a file and populate an HTML drop-down
list using Perl. How can I do this? I've found a Perl example to
read the contents of a text file and populate an array like this:
$data_file="SomeInput.txt";
open(DAT, $data_file) || die("Could not open file!");
@raw_data=<DAT>;
close(DAT);
The data is in the raw_data array. How can I return this value back
to HTML?
2) I want to be able to read a directory structure on the server and
use the directory names to populate an HTML dropdown list using Perl.
How can I do this?
Thank you in advance for any help. I greatly appreciate it.
Tim.
1) I want to be able to read a file and populate an HTML drop-down
list using Perl. How can I do this? I've found a Perl example to
read the contents of a text file and populate an array like this:
$data_file="SomeInput.txt";
open(DAT, $data_file) || die("Could not open file!");
@raw_data=<DAT>;
close(DAT);
The data is in the raw_data array. How can I return this value back
to HTML?
2) I want to be able to read a directory structure on the server and
use the directory names to populate an HTML dropdown list using Perl.
How can I do this?
Thank you in advance for any help. I greatly appreciate it.
Tim.