title: Split a string into array in Perl
body: <pre><code>my $line = "file1.gz file2.gz file3.gz";
  my @abc = split('', $line);
  print "@abc\n";
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>file1.gz
  file2.gz
  file3.gz
  </code></pre>
  
  <p>I want the output to be <code>file1.gz</code> in <code>$abc[0]</code>, <code>file2.gz</code> in <code>$abc[1]</code>, and  <code>file3.gz</code> in <code>$abc[2]</code>. How do I split <code>$line</code>?</p>