title: print strfitime in perl
body: <p>Here is my current code:</p>
  
  <pre><code>print "&lt;td class=resa&gt;@res[$i]-&gt;{'signupdate'}&lt;/td&gt;&lt;/tr&gt;\n";
  </code></pre>
  
  <p>I want to modify the variable <code>@res[$i]-&gt;{'signupdate'}</code> to be a <em>formatted date</em>. The data is <code>201710130915</code> for that variable.</p>
  
  <p>I've tried:</p>
  
  <pre><code>use POSIX qw(strftime);
  my $date=strftime('%Y-%m-%d',@res[$i]-&gt;{'signupdate'});
  print "&lt;td class=resa&gt;$date&lt;/td&gt;&lt;/tr&gt;\n";
  </code></pre>
  
  <p>Any suggestions?</p>