> On Fri, Feb 8, 2013 at 2:06 AM, Jim Gibson <jimsgib...@gmail.com> wrote: >>
>> The null filehandle (<>) will read from standard input if @ARGV is empty, >> and from the members of @ARGV, interpreting each scalar as a file name to be >> opened automatically in succession. >> >> Does that do what you want? >> >> Actually, somehow with perl -n it can tell if it's being piped into and you can -t STDIN. That doesn't seem to work otherwise. Is there a way of telling if it's being piped in data otherwise so that I can present a message? Right now, I have: BEGIN { $SIG{INT} = sub { blah } } But, as this requires a user to kill the process in order to get a help message, this isn't ideal. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/