No such thing as a small change | |
PerlMonks |
Re: File that exists won't openby ww (Archbishop) |
on Mar 07, 2014 at 13:58 UTC ( [id://1077389]=note: print w/replies, xml ) | Need Help?? |
Just for giggles ...and because I've seen peculiar but inconsistent problems when including a hyphen (minus-sign) or appending one in a variable name under AS 5.10 ... 5.16, I tried some variants on your Line 007 (using "perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x86-multi-thread" and escaping the double quotes to keep the Win32 shell happy, since my Linux box is otherwise occupied):
The modified double-quotes shouldn't (TBOMK) change the way Perl interprets the code; they just keep the shell from diddling with the intent. But, as you can see, this for-giggles code suggests that yours won't do what you intended. Why strict is not squawking is another question: I can't explain why Perl should see "$c-assignments.dat" as a valid variable, when only "$c" has been declared but your report doesn't tell us that you say any such complaints. Bottom line: is what you posted an exact cut'n'paste of the code giving you problems?
In Section
Seekers of Perl Wisdom
|
|