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

perl/Tk and piping questions

2006-08-25 Thread John Cortland Morgan \(ZG/ETK\)
Hi, Anyone know of a good online reference/tutorial for perl/Tk, especially in area of layouts (pack/grid/?)? Can't seem to get things lined up as I'd like. Also, anyone know how to (easily) get a script to act more like a pipe, ie: like Unix cat, head, etc... What I would like to be able to