I was wondering if there is any tool that could go through code and replace print with say where appropriate.
For example,
print "foo\n"; should become say "foo"; or say 'foo';Similarly print "$a\n" could become say "$a" or ideally just say $a
Manually making this type of change seems tedious and error prone. I was hoping for something similar to perltidy that could do it automatically.
P.S. If no tool like this exists, any thoughts and what it would take to hack something like this together?
Thanks in advance.
In reply to autoconverting print to say by dlarochelle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |