From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from netman.widener.edu ([192.55.239.51]) by hawkwind.utcs.toronto.edu with SMTP id <2221>; Thu, 9 Jul 1992 18:09:15 -0400 Received: from betty.cs.widener.edu by netman.widener.edu (5.61/1.34) id AA04734; Thu, 9 Jul 92 18:08:27 -0400 Received: by betty.cs.widener.edu id AA00518 (5.65c/Widener-4.1 for rc mailing list ); Thu, 9 Jul 1992 18:08:57 -0400 Date: Thu, 9 Jul 1992 18:08:57 -0400 From: Brendan Kehoe Message-Id: <199207092208.AA00518@betty.cs.widener.edu> To: rc mailing list Subject: optimal scripts Reply-To: brendan@cs.widener.edu What's the fastest (most efficient) way to do something like this? for (foo in $bar) { if ( some_test $foo ) { first=($first $foo); } else { second=($second $foo); } } Brendan