in reply to Program can not read the contents of a small file that it has recently written!

Let me be the first to tell you: throw a use strict line near the top of your code.

$PM = "Perl Monk's";
$MCF = "Most Clueless Friar Abbot";
$nysus = $PM . $MCF;

  • Comment on Re: Program can not read the contents of a small file that it has recently written!
  • Download Code

Replies are listed 'Best First'.
Re: Program can not read the contents of a small file that it has recently written!
by Abigail (Deacon) on Jun 26, 2001 at 03:31 UTC
    Let me be the first to tell you: throw a use strict line near the top of your code.

    I'm sorry, but I don't get it. How does adding a use strict; help in solving the problem?

    -- Abigail

Re: Re: Program can not read the contents of a small file that it has recently written!
by lostcause (Monk) on Jun 26, 2001 at 02:41 UTC
    Sorry the original code does have a use strict in it.
    As you can see almost all the virabels are defined with my.
    So add a my to the first line were the variable $prometer is used along with use strict; at the top and we still have the same problem.