That's a way of conveying a "usage synopsis" to a user when the command is run without appropriate arguments. In this case, the "synopsis" is a message that says the user should enter the name of the command (i.e. the name of the perl script) followed by the name of a stopword list file, followed by the name of a document text file.

The part between parentheses tests whether @ARGV contains two elements, and then whether each element is the name of an existing data file. If any of those three conditions is false, it goes into the "or die ..." clause, and the program exits with the usage synopsis.

In case your shell environment requires that you run "perl.exe" followed by the name of your script, just add the names of the two data files after the name of the script in order to get it to actually run with those two files as input. Don't forget to redirect STDOUT to a file:

perl name_of_script.pl stopword.file doc.file > table.file

In reply to Re^5: Creating Metadata from Text File by graff
in thread Creating Metadata from Text File by Trihedralguy

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.