<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>Sinner! <BR>
<BR>
I agree use awk but in Perl use split and take a slice of the array.<BR>
($firstcolumn, $tenth) = (split (/\t/, $string_with_tab))[0,9];<BR>
<BR>
<BR><BR><BR> <BR>
<HR id=stopSpelling>
<BR>
> Date: Thu, 17 Apr 2008 16:43:05 -0400<BR>> From: sfryer@sourcery.ca<BR>> To: tpm@to.pm.org<BR>> Subject: Re: [tpm] eliminating columns from tab delimited files<BR>> <BR>> On Thu, Apr 17, 2008 at 04:05:44PM -0400, Omid Gulban wrote:<BR>> > does anyone have a quick way of eliminating certain columns from a tab-delimited file.<BR>> <BR>> I know it's not very Perl'ish, but have you considered using `awk`?<BR>> We all love Perl, but sometimes it's overkill. Beyond that, unless<BR>> you're experiencing performance issues, I don't see any reason not<BR>> to do it the way you described.<BR>> <BR>> Cheers,<BR>> --<BR>> Shaun Fryer<BR>> cl: 905-920-9209<BR>> _______________________________________________<BR>> toronto-pm mailing list<BR>> toronto-pm@pm.org<BR>> http://mail.pm.org/mailman/listinfo/toronto-pm<BR><BR><br /><hr />Sign in to Windows Live Messenger, and enter for your chance to win $1000 a day—today until May 12th. <a href='http://g.msn.ca/ca55/210' target='_new'>Visit SignInAndWIN.ca</a></body>
</html>