in reply to How to know if a perl script is put in the background
I think I read in "Perl Best Practices" that using -t is not always accurate. The author (Damian Conway) suggests using something like this...
use IO::Interactive qw(is_interactive); if ( is_interactive() ) { print "Running interactively\n"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to know if a perl script is put in the background (background vs. non-interactive)
by almut (Canon) on Nov 18, 2008 at 21:58 UTC |
In Section
Seekers of Perl Wisdom