title: Storing or using a reference to create a variable in perl
body: <p>I am trying to store a reference in a variable to use it in a different context. Like this. </p>
  
  <pre><code>#!/usr/bin/perl
  use strict;
  use warnings;
  use DateTime;
  
  my $dt=DateTime-&gt;now(time_zone=&gt;"local");
  $dt-&gt;week_number = $tt;
  </code></pre>
  
  <p>print $tt;</p>
  
  <p>but it doesnt work. What can i do to store the current weeknumber in this case and print it or use it in other ways...</p>