in reply to Opening a Text File that contains $ in the name.

Use single quotes around the file name or escape the $ with a backslash.

Perl is trying to interpolate a scalar variable into the string. You want a literal dollar sign instead.

  • Comment on Re: Opening a Text File that contains $ in the name.