title: How can I print all executed subroutines?
body: <p>E.g. I have following Perl script </p>
  
  <pre><code>{ 
      package A;
  
      {
          package B;
  
          sub _y {
              print "Just Another Perl Hacker\n";
  
          }
  
      }
  
      sub _x {
          print "Hello world!\n";
          B::_y();
      }
  }
  
  
  use strict;
  use warnings;
  
  _x();
  </code></pre>
  
  <p>How can I print every executed sub with package qualifier to STDERR or any log file?</p>
  
  <p>E.g. from the script above I expect to see the following output:</p>
  
  <pre><code>1 A::_x()
  2 B::_y()
  </code></pre>
  
  <p>I presume that it's possible to do with debugger like Devel::NYTProf, but I haven't found particular debugger modules or their params for that simple task.</p>
  
  <p>Any ideas?</p>