Okay, thanks. I now added a trap for SIGPIPE and I got an error "can't close: status = -1 at ...". So what do I from there? Also, here is code. Thanks again.
$SIG{PIPE} = 'IGNORE'; open LESS, '|less' or die "unable to start pager"; print LESS $string or die "cant write: $!"; close LESS or die "can't close: status = $?"; system("clear");
In reply to Re^2: pipe to less crash
by Anonymous Monk
in thread pipe to less crash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |