Thanks toolic,appreciate your help.the information was very useful. I am trying to do the following a)open the files in a given directory/subdirectories-only files with extension .v/.vh/.svn/.sv/.svi. At present concentrating on only .v and .vh b)search for verilog module definition c)for each module that is defined more than once the list of all files(full path /relative path) in which the module is defined should be printed. d)must be able to exclude // from parsing i figured out i could do much of the stuff using o the vhier,but i am unsure of how to use the verilog arguments like 1.+incdir+dir =item -Idir Add the directory to the list of directories that should be searched for include directories or libraries. 2.and also the vhier -f file:Read the specified file, and act as if all text inside it was specified as command line parameters. Should a filehandle be passed or just the filename? I know this sounds really silly asking such basic questions but I am good at writing perl code rather than using packages Would appreciate if you could throw some light on this. Thanks

In reply to Re^2: verilog perl usage by perlvoyager
in thread verilog perl usage by perlvoyager

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.