Delete columns

Please support our Perl advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 7
Reputation: SNN is an unknown quantity at this point 
Solved Threads: 0
SNN SNN is offline Offline
Newbie Poster

Delete columns

 
0
  #1
Dec 13th, 2007
Hi,
I am new to Perl and I appreciate if someone can help me.

I have a tab delimited file that contains 100 columns and 300 rows. The first row is the ID. I need first to read the file into a matrix or a table and delete the columns with a specific ID, for example columns with ID that contains the letter "k".


Thanks,
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Delete columns

 
0
  #2
Dec 14th, 2007
OK, what have you tried so far?
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 78
Reputation: chrisranjana is an unknown quantity at this point 
Solved Threads: 3
chrisranjana chrisranjana is offline Offline
Junior Poster in Training

Re: Delete columns

 
0
  #3
Jan 8th, 2008
You could use one of those perl CSV modules found at CPAN
Chris, Director, Chrisranjana.com
Web developers and software programmers.
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 8
Reputation: uan_Blr is an unknown quantity at this point 
Solved Threads: 0
uan_Blr uan_Blr is offline Offline
Newbie Poster

Re: Delete columns

 
0
  #4
Sep 3rd, 2008
Hi there!
i have a very similar problem, and would ask you if found already an solution!
i would be very happy as a perl beginner if you could send me a short script doing this.
(i have 16 columns, have to do the difference col6-col10 and then delete all columns and leave only the 1. and the difference column)
many thanks,
uan

Originally Posted by SNN View Post
Hi,
I am new to Perl and I appreciate if someone can help me.

I have a tab delimited file that contains 100 columns and 300 rows. The first row is the ID. I need first to read the file into a matrix or a table and delete the columns with a specific ID, for example columns with ID that contains the letter "k".


Thanks,
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 898
Reputation: KevinADC has a spectacular aura about KevinADC has a spectacular aura about 
Solved Threads: 67
KevinADC's Avatar
KevinADC KevinADC is offline Offline
Practically a Posting Shark

Re: Delete columns

 
0
  #5
Sep 3rd, 2008
Be happy to help you if you have put any effort into solving the problem. BUt I will not just write a script for you based on your requirements, this is not a script writing or do-my-homework service.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 2102 | Replies: 4
Thread Tools Search this Thread



Tag cloud for Perl
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC