title: How to import a variable when using "require"?
body: <p>This doesn't work (error messages below). How could I make this work?</p>
  
  <pre><code>#!/usr/bin/env perl
  use warnings;
  use strict;
  use 5.10.1;
  
  sub routine {
      require FindBin;
      FindBin::-&gt;import( '$RealBin' );
      say $RealBin;
  }
  
  routine();
  </code></pre>
  
  <p>Gives this output</p>
  
  <pre><code>Global symbol "$RealBin" requires explicit package name at ./perl.pl line 9.
  Execution of ./perl.pl aborted due to compilation errors.
  </code></pre>