in reply to Re: Help in putting "$" as part of output
in thread Help in putting "$" as part of output

See open for more details. That won't fix your current issue, but it'll level up your code and beginner status.

use autodie;

  • Comment on Re^2: Help in putting "$" as part of output

Replies are listed 'Best First'.
Re^3: Help in putting "$" as part of output
by perlfan (Parson) on Mar 15, 2016 at 14:24 UTC
    I was trying to be semantically equivalent to the OP. Sure, I could have said open(F,">$filename.inp") or die;, but my intent was not to advocate for an error handling strategy one way or another. I've also never had a need to use autodie, so it's not a go-to of mine. I know people who swear by it and those who hate it. Me, I am indifferent. And lazy.