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

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.