Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Ken Irving
On Thu, Apr 01, 2004 at 02:10:46PM -0800, William Ballard wrote: > Given: > > A - 1 > A - 2 > B - 1 > B - 2 > > what's the simplest command or perl script to print it as: > > A (1, 2) > B (1, 2) > > or something equivalent. Hmm, one of the zillions of ways of doing something equivalent, with t

Re: Stumped with a Posix/Perl Question

2004-04-01 Thread Thorsten Haude
Moin, * William Ballard wrote (2004-04-02 00:10): >Given: > >A - 1 >A - 2 >B - 1 >B - 2 > >what's the simplest command or perl script to print it as: > >A (1, 2) >B (1, 2) > >or something equivalent. Is that an array? Depending on the size and whether it's fixed I would use either printf or somet

Stumped with a Posix/Perl Question

2004-04-01 Thread William Ballard
Given: A - 1 A - 2 B - 1 B - 2 what's the simplest command or perl script to print it as: A (1, 2) B (1, 2) or something equivalent. Thanks -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]