in reply to Some system command not working as required after File::Tee

Just redirect the pager output to /dev/tty:
sub pager { my $temp = "temp.txt"; my $pager = "less"; my $tty = "/dev/tty"; system("$pager $temp >$tty"); }

Replies are listed 'Best First'.
Re^2: Some system command not working as required after File::Tee
by perlyogi (Acolyte) on Dec 14, 2010 at 10:28 UTC
    Thanks salva!! This did the trick. STDOUT is now tied to the terminal be redirecting to /dev/tty and system command works correctly.