title: split white spaces using perl
body: <p>I have this line of code to split the white spaces in a text file:</p>
  
  <pre><code>my @line_splits = split /\s+/, $ine;
  </code></pre>
  
  <p>And this is the few contents of the text file:</p>
  
  <pre><code>  1 2016-09-27 14:07:20.084877
    2 2016-09-27 14:07:20.084998
    3 2016-09-27 14:07:20.131343
    4 2016-09-27 14:07:20.131374
    6 2016-09-27 14:07:20.137359
    7 2016-09-27 14:07:20.137556
    8 2016-09-27 14:07:20.137796
    9 2016-09-27 14:07:20.437769
   10 2016-09-27 14:07:20.437796
  100 2016-09-27 14:07:23.293661 
  </code></pre>
  
  <p>My goal is to get the date and the time (which I knew is on $line_splits[1] and $line_splits[2]).</p>
  
  <p>But when I ran my perl script, the lines from 1 to 99 are wrong while on the 100th and up I've got what I've want.</p>
  
  <pre><code>Time Stamp: 98 2016-09-27               --&gt; line 98
  Time Stamp: 99 2016-09-27               --&gt; line 99
  Time Stamp: 2016-09-27 14:07:23.293661  --&gt; line 100
  Time Stamp: 2016-09-27 14:07:23.299406  --&gt; line 101
  Time Stamp: 2016-09-27 14:07:23.299437  --&gt; line 102
  </code></pre>
  
  <p>Can someone tell me if what is wrong with the regex or there is another way to do this?</p>
  
  <p>I don't know if it is already duplicated in here but any help will be very much appreciated.</p>
  
  <p>Thank you :)</p>