Greetings fellow monk, you seem to be already an experienced programmer so i wonder if what is following will be of any help , but since it won't take me too long to write ... You have already been perfectly answered so i won't add any thing this topic . I will rather tell you how to uncover what was your mistake when you have that kind of error message . It couldn't be a problem with the opening of the file , as you could have been sure of with using the useful checking tip of "or die $!;". Tell yourself that with Perl flexibility , anything that could receive , as an argument , a string between two quotes can be replaced by a variable holding a string : open (FILE,"/root/blahblah"); is litteraly equivalent to $file="/root/blahblah"); open (FILE,$file); So your line hadn't any problem . What could it be then ? Nine times out of ten , it's a problem of a mispelling or missing semicolon . So , as the two lines mentionned didn't and couldn't have any problem , it had to be a problem that existed before and that had been reported from one line to the following until it became critical . So as the other monk did certainly , i looked upwards line after line to find the guilty one ... And bingo !
<HTML><BODY> the little one. </BODY></HTML>

In reply to Re: Opening a file called by a hash value by nehlwyn
in thread Opening a file called by a hash value by c

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.