in reply to Re^3: Trouble working with Config::Simple
in thread Trouble working with Config::Simple

The message is telling exactly what's wrong.

Sure it is. But the point is how you'd interpret the message if you think that '~' stands for your home directory. Of course, once you reckon what the problem is, it's all nice and dandy.

Honestly, if some message reports a problem with ~/somefile, would your first thought be that the real problem is that ~ has nothing to do with your home directory? Even details such as "Permission denied" vs. "No such file or directory" etc., or whether the shell would normally expand tilde in an error message, might not immediately point in the right direction. — Believe me, I've seen rather skilled programmers tricked by this...

Replies are listed 'Best First'.
Re^5: Trouble working with Config::Simple
by jethro (Monsignor) on Jun 30, 2008 at 22:49 UTC
    Without a moments thought, yes, many skilled programmers would be fooled by that. But in the same vein from all the "unskilled" programmers out there there should be some who get a "stroke of insight" after looking at that error message. And often that is also the moment they learn that error messages are a source of information not to be clicked away

    At the least the message pinpoints the problem area. As soon as someone knows how to debug, he's got a lead now.