Like this? $var = "1,2,3,4,5"; $second = (split ",", $var)[1]; $third = (split ",", $var)[2];
print "$second - $third"; (...) regards, fabricio. -----Mensagem original----- De: Noushad Dawood [mailto:[EMAIL PROTECTED] Enviada em: Friday, September 26, 2003 11:11 AM Para: [EMAIL PROTECTED]; [EMAIL PROTECTED] Assunto: How to skip unwanted columns in CSV file? I'm trying to read a huge CSV file which got 30 columns separated by comma, but i only need to get values of 3rd, 12th and 20th columns. Is there a neat and easy way to get this done? Regards, /nd ********************************************************************** The contents of this mail are personal opinions of the Author. ADIA disclaims all responsibility and accepts no liability, whatsoever. ********************************************************************** _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs