OK, you're right.
I had somehow misread my Camel book and believed that any case in which an array variable is used in what is implicitly a scalar context would yield the length of the array. Looking back over the appropriate section (p. 76), I now see that the context must be implicit through operational use or explicitly stated.
Of course, this makes no difference in the error I'm experiencing, because now that the "for" loop is operating properly, it still gets an error from @InFileNames[0] which hasn't been defined.
I'll take your admonition to heart and look over the camel book at home this evening. Perhaps a more detailed reading of the glob function definition will yield the answers I need.
Irrespectivly, I'd like to retract my angry tone, which was neither justified nor merited. Nobody likes to think that they're being treated like a petulant child, least of all if they're acting like one. If it's at all illuminating, this is pretty well my first effort at Perl coding, ever, and it is being debugged in the spare time I have while converting the aforementioned SGML files to a CSS-HTML format, the which is scarce. So I used up the project time I alloted myself for writing this thing, and am trying to steal time here and there to fix it. (Which is not conducive to the careful reading of documentation.)
In reply to Re: Re: Re: Re: Re: Need help with subdividing SGML files
by DukeLeto
in thread Need help with subdividing SGML files
by DukeLeto
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |