title: How to write scientific notation in perl?
body: <p>I have been working on a program for a while, and the next goal I have to say basically</p>
  
  <blockquote>
    <p>"In column [27] if the value is more than <code>10^-8</code> delete the file"</p>
  </blockquote>
  
  <p>How does one write <code>10^-8</code> in a program?</p>
  
  <pre><code>#!/usr/local/bin/perl
  
  use strict;
  use warnings;
  
  my @traitarray;
  my $traitarray;
  my $input ;
  my %traithash ;
  my $t_out ;
  my $TRAIT;
  my $SNPS;
  
  open ($input, "gwas_catalog_v1.0-downloaded_2015-07-31.tsv") || die () ;
  
  while(&lt;$input&gt;) {
      @traitarray = split (/\t/);
      $TRAIT = $traitarray[7];
      $SNPS = $traitarray[21];
  
      if (!exists $traithash {$TRAIT}) {
              $TRAIT =~ tr/ /_/ ;
              $TRAIT =~ tr/:/-/ ;
              $TRAIT =~ tr/\//-/ ;
              $TRAIT =~ tr/*/-/ ;
              open ($t_out, "&gt;outputFiles/".$TRAIT.".txt");
              print $t_out "$SNPS\n";
              $traithash {$TRAIT} = 1 ;
              push (@traitarray, $TRAIT) ;
      }
      else {
          print $t_out "$SNPS\n";
      }
  }
  
  foreach ($traitarray) {
      close "$TRAIT.txt";
  }
  </code></pre>
  
  <p>Column [27] has about 30,000 lines in the format of "6E-12" " "12E-9"  ect...</p>