title: formatting output data to an excel file
body: <p>This program gets numeric values from the web for each of the values in my @values array
  I want these values to be printed out in a table which looks like</p>
  
  <pre><code>       il9  il8 il7
   2012  v1    b1
   2011  v2    b2
   2010  v3    b3
     .
     .
   2000  v12   b12
  </code></pre>
  
  <p>where v1 .. v12 are values for the first variable in @values etc. here is my program please help me structure it. Is there an escape character that could take me back to the first line of the program in perl
  thanks</p>
  
  <pre><code>  #!/usr/bin/perl -w
    use strict;
    use LWP::UserAgent;
    use URI;
    my $browser = LWP::UserAgent-&gt;new;
    $browser-&gt;timeout(10);
    $browser-&gt;env_proxy;
  
    open(OUT, "&gt;out");
    my $i = 2013;
    while ($i-- &gt; 2000){print OUT "$i\n"}
    my $a = 2013 ;
    my $base = 'http://webtools.mf.uni-lj.si/public/summarisenumbers.php';
    my @values = ('il9', 'il8', 'il6' );
    foreach my $value (@values) {
  print OUT "$value \n"
      while ($a-- &gt; 2000){
                  my $b = $a + 1;
                  my $c = $b + 1; 
                  my $query = '?query=('.$value.')'.$a.'[dp] NOT           '.$b.'[dp] NOT '.$c.'[dp]';
                  my $add = $base.$query;
                  #my $url = URI-&gt;new($add);  
                  #my $response = $browser-&gt;get($url); 
                  #if($response-&gt;is_success) {print OUT $response-&gt;decoded_content;}
                  #else {die $response-&gt;status_line};
                  print OUT "$query\n";
                  } $a = 2013; print OUT
                          }
  
     close(OUT);
  </code></pre>