http://www.perlmonks.org?node_id=665913


in reply to perl script not giving output

Please note that some shells on some OS' redirect only some output (namely only STDOUT) when using >. Output produced by warn, die et al. is normally not printed to STDOUT, but STDERR. To redirect this output to your logfile (on some shells), you have to

$ ./abcd.pl > file.log 2>&1

-- Frank