there seems to be some strange error which is present in both the assoc 0.3 and the 0.4 which i'm working on

when invoked with extensions as an argument it says that the variable $extcnt is undefined, and says:

Use of uninitialized value in substr at E:\Workspaces\Perl\asocx 0.3.p +l line 146

when all that happens there is '$extcnt++' in the scope of the while loop...

needless to say worse things happen when I try to run the 0.4 version, I don't understand how .htm can equal a SH File when SH file can't be found anywhere near .htm in the registry.

Update
solved the problem with the undefined variables, by adding = 0 but I still get the strange substr error

In reply to Re: perl-assoc 0.3 by Maze
in thread perl-assoc 0.4 by Maze

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.