]> git.donarmstrong.com Git - biopieces.git/commitdiff
added nifty # detail to read_tab
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 10 Aug 2009 16:03:26 +0000 (16:03 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Mon, 10 Aug 2009 16:03:26 +0000 (16:03 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@631 74ccb610-7750-0410-82ae-013aeee3265d

bp_bin/read_tab
code_perl/Maasha/C_code.pm

index 3c782303d101c2da9d14afaebab7dac2f9857119..f223523b2c05c91cdda384011217360ce0243018 100755 (executable)
@@ -70,7 +70,16 @@ if ( $options->{ 'data_in' } )
             next;
         }
 
-        next if $line =~ /^#|^$/;  # skip comment lines beginning with # and skip empty lines.
+        next if $line =~ /^$/;  # skip empty lines.
+
+        if ( $line =~ /^#.+/ and not defined $options->{ 'keys' } )
+        {
+            $line = substr $line, 1;
+
+            $options->{ 'keys' } = [ split /$options->{'delimit'}/, $line ];
+
+            next;
+        }
 
         chomp $line;
 
index 4b248e9521cc9261e8e6959743207b2bbc30fd63..bbcf3ba373b4e1aca78aeef174b374671cdead64 100644 (file)
@@ -45,13 +45,10 @@ use Inline ( C => Config =>
 
 use Inline C => << 'END_C';
 
-void maasha_ping();
-
 END_C
  
 
 # >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
 
-maasha_ping();
 
 1;