File: interactive.pl

package info (click to toggle)
libio-interactive-perl 0.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 96 kB
  • ctags: 6
  • sloc: perl: 132; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 158 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl -w

use IO::Interactive qw(is_interactive);

if( is_interactive() ) 
	{
	print "interactive\n\n";
	}
else 
	{
	print "NOT interactive\n\n";
	}