webscripter
Programmer
Hi everyone,
I'm writing code that creates a perl file according to user input. The purpose of the file is to create a list of all possible names from a list of select boxes that the user generates. For instance, if they create a select box with the following options:
red green blue;
and another with:
large, med, small
the perl code will list:
large,red
large,green
large,blue
med,red
med,green
etc.....
The code I've generated works properly in generating all the names when called from the browser address bar.
But when called with a require statement directly before the code is used it chops off the first few elements of the array.
Does anyone know why this occurs?
Thanks
Tricia
yorkeylady@earthlink.net
I'm writing code that creates a perl file according to user input. The purpose of the file is to create a list of all possible names from a list of select boxes that the user generates. For instance, if they create a select box with the following options:
red green blue;
and another with:
large, med, small
the perl code will list:
large,red
large,green
large,blue
med,red
med,green
etc.....
The code I've generated works properly in generating all the names when called from the browser address bar.
But when called with a require statement directly before the code is used it chops off the first few elements of the array.
Does anyone know why this occurs?
Thanks
Tricia
yorkeylady@earthlink.net