RE: perl/Tk and piping questions

2006-08-28 Thread Ken Foskey
On Mon, 2006-08-28 at 12:27 +0200, John Cortland Morgan (ZG/ETK) wrote: > > > This will test for a pipe > > > #!/usr/bin/perl > > # -t tests if a tty is input, else it's a pipe > > > > if (@ARGV == 0 and -t) { > > die "Usage: $0 INPUT\n"; > > } > > > > while (<>) { > > #

RE: perl/Tk and piping questions

2006-08-28 Thread John Cortland Morgan \(ZG/ETK\)
Hi, Thanks for the tip about > The book Mastering Perl/Tk has a pretty good Chapter 3 on Geometry Management. > You can probably read it for free with an sign up at http://safari.oreilly.com/ about the piping question, it's not an either/or situation. It could be both. A good example is t