in reply to specifying path to files
There is at least 1 typo in your posted code. use CGI needs a semicolon.
Using the strictures can help prevent other simple mistakes:
This will force you to declare all yor variables using my, which will be well worth the effort and time.use warnings; use strict;
The following line looks odd:
pop actually modifies the array.@line = pop(@line);
The following line also looks odd:
++$inum may be sufficient.$inum = ++$inum;
Declaring a sub in the middle of your main code is a little confusing.
Your sub indexArray, while it may earn you a low Perl golf score, should probably not be so compact. It would benefit greatly by some added whitespace.
I hope this helps.
|
|---|