Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl writing Perl code on the fly

Status
Not open for further replies.

webscripter

Programmer
Jul 29, 2002
266
US
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

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top