I have two perl scripts that use an identical (except for the variable names) eval statement using a quoted expression. I'm on a Windows platform using perl 5.6
eval "\$test_crypt =~ tr/$key/$word/";
I'm not an expert and I can't explain why I'm doing it the way I'm doing it, but if it's not quoted and back-slashed, it does not work. (I may have found it here... ;-)
I don't open any output files in either script (at least until I inserted some redirection stuff). I've attempted to redirect both STDOUT and STDERR. "print" statements before and after the redirect indicate my redirect is working, but the eval statement still appears on the monitor.
The code is too convoluted, long and poorly written to post, but I'm wondering if it may be due to some of the "use" modules I have in the script that does not output the eval to the screen... both use "strict" but one uses:
Data::Dumper;
Text::Wrap;
Text::Autoformat;
PortableReadKey;
I spent some time searching for eval, redirect etc. both here and on the net and came up empty. Any other ideas? Any help would be greatly appreciated. As it stands, the print sure slows down the script!
Thanks!
Life is short, but it's wide -- Chuck Pyle