- or download this
-t Filehandle is opened to a tty.
- or download this
#!/usr/bin/perl
...
} else {
say "Script '$iam' is receiving input from a pipe";
}
- or download this
Script 'script' called from a terminal with 3 arg(s):
1. arg1
2. arg2
3. arg3
- or download this
Script 'script' is receiving input from a pipe
- or download this
while (<STDIN>) {
say "Got input: $_";
}