>>>>> "BR" == Bill Ricker <[EMAIL PROTECTED]> writes:
>> my @col_names = split( /\t/, <> ) ;
>> my %name2col ;
>> @name2col{ @col_names } = 0 .. $#col_names ;
BR> yes, i use the slice on the header line when making hashes even when
BR> using Text::CSV_XS., which is also done with slicing
i have used the csv modules before and i started to with this little
project but for some reason i got annoyed with one or both (perl or xs
versions). one didn't seem to allow me to change the delimiter. and
neither seems to handle column names. so what hell, i knew this file was
clean with tabs and split is so easy to do and i knew i could slice
away so i did.
uri
--
Uri Guttman ------ [EMAIL PROTECTED] -------- http://www.sysarch.com --
----- Perl Code Review , Architecture, Development, Training, Support ------
--------- Free Perl Training --- http://perlhunter.com/college.html ---------
--------- Gourmet Hot Cocoa Mix ---- http://bestfriendscocoa.com ---------
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm