On Fri, 26 Sep 2003, Ken Cornetet wrote: > open FILE blah, blah... > while(<FILE>) { > chomp; > my @tmp = split /,/; > my $col3 = $tmp[2]; > my $col12 = $tmp[11]; > my $col20 = $tmp[19]; > } > > I suppose you could get fancy and use DBI and DBD-CSV. >
Or you could use a Cray super-computer to discover the value of the variables by using the Monte Carlo method (a random walk) to repetively try to guess which ones are the correct ones. Why complicate a simple task? Unless of course, you're trying to deliberatly make life difficult for the next person who will have to maintain your code. Unnecessary "fancy" is rarely appreciated by other than the party of the first part OTOH, simplistic elegance is widely admired. **** [EMAIL PROTECTED] <Carl Jolley> **** All opinions are my own and not necessarily those of my employer **** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs