Thank you to everyone. This has been an informative experience. It all started because I ran the script I created and somehow it took the text file I was reading from and emptied it which I didn't notice. So I ran the script again without any errors but without any returns either. So I thought the script was bad which it was but I have since fixed. But since I didn't know exactly what the script was doing I wrote a smaller try script which is the one we are talking about. It returned no errors but no results either since I was still working with the null text file. So I searched the internet and found the site that suggested the single quotes and so here we now are.

Installing Perl::Critic was fun since I had to find and install numerous modules to get it past the make test. Is there a way to find all the dependencies before I try to install a module from CPAN?

Again thank you to all. Sherman


In reply to Re^2: perl can find the file but can not open the file by ShermW0829
in thread perl can find the file but can not open the file by ShermW0829

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.