logging $! with $r->log_error

2010-12-11 Thread Mark Copper
Hi all, I stole this snippet years ago (and probably modified it improperly) only to learn yesterday it has a serious problem: unless(open MAIL, "| /usr/sbin/sendmail -t -i -F'...' -f'...''"){ $main::r->log_error("Couldn't open mail: $!"); return DECLINED; } namely this error: [Th

mod_perl 2 - %ENV variable

2010-12-11 Thread Peram, Sudhakara
Hi I am migrating a web application from mod_perl 1.21 to mod_perl 2.0.4, Apache 1.3.9 to 2.2.17 and Perl5.005 to Perl5.12.2 . Operating system is Sun Solaris 9. The problem is that in most places the %ENV variable is used to pass parameters to programs called via "system". Now these variab