![]() |
|
The stupid question is the question not asked | |
PerlMonks |
Re: autoconverting print to sayby Jorge_de_Burgos (Beadle) |
on Nov 14, 2009 at 07:02 UTC ( #807102=note: print w/replies, xml ) | Need Help?? |
Since both print and say have output, and your main concern is avoiding alteration of that output when replacing one with the other, I think an automated replace should test your program's output (all variants of it) before and after the replace. If outputs don't differ, it means your automated replace has worked OK. If modified $/ (or other) bugs occur, a diff on outputs will scream out loud and clear!
In Section
Seekers of Perl Wisdom
|
|