|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
die/warn bug in elsifby tlm (Prior) |
| on Jan 12, 2006 at 17:06 UTC ( #522753=perlmeditation: print w/ replies, xml ) | Need Help?? |
|
This bug is just a minor annoyance, but it can slow down debugging if one is not aware of it, so I thought I'd share. The following snippets illustrates it: If you run it as written, the output is: Note that the line reported by die is incorrect. The same bug exists with warn, and with warnings in general. E.g.
Stuff happens. Update: the above examples were run with perl 5.8.6. I haven't looked at other versions. YMMV. Update 2: thanks to merlyn for the clarification on compile-time vs. run-time behavior, which I originally mis-interpreted as a difference in response between non-fatal and fatal and non-fatal errors. the lowliest monk
Back to
Meditations
|
|
||||||||||||||||||||||||||