pendulum
01-30-2005, 03:53 AM
The problem is that I need to read the list items from a simple text file and
build a hierarchical list using these items.
How simple is it to use Perl-variables and their values in a JavaScript script? :confused:
I was thinking that I would use Perl to read the file contents and then use JavaScript to sort them into hierarchical order
The list is written as followed:
#Main Title 01
##Sub Title 01
##Sub Title 02
###Sub Title 01 of Sub Title 02
#Main Title 02
etc....... you get the idea (the amount of #'s signify the list level)
So, can I use a direct reference in my JavaScript code to a variable name in Perl? Any suggestions?
build a hierarchical list using these items.
How simple is it to use Perl-variables and their values in a JavaScript script? :confused:
I was thinking that I would use Perl to read the file contents and then use JavaScript to sort them into hierarchical order
The list is written as followed:
#Main Title 01
##Sub Title 01
##Sub Title 02
###Sub Title 01 of Sub Title 02
#Main Title 02
etc....... you get the idea (the amount of #'s signify the list level)
So, can I use a direct reference in my JavaScript code to a variable name in Perl? Any suggestions?