Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Recover a variable from a function

by Ovid (Cardinal)
on May 19, 2016 at 10:32 UTC ( [id://1163461]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub Start_timer : Test(startup) {
      my $test = shift;
    ...
      cprintf "#\x035 Total run time=>", $end-$start, " seconds\n";
      cprintf ("%02d:%02d:%02d\x030\n",(gmtime($end-$start))[2,1,0]);
    }
    
  2. or download this
    has 'start' => (
      is      => 'ro',
    ...
      cprintf "#\x035 Total run time=>", $end-$start, " seconds\n";
      cprintf ("%02d:%02d:%02d\x030\n",(gmtime($end-$start))[2,1,0]);
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1163461]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-25 16:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found