Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way I can create a module that wraps this two stuff into my script via a begin and end blocks by only importing it via a 'use' directive?#/usr/bin/perl -w use stict; print "Started: strftime( "%a %b %d %T %Z %Y", localtime )\n"; # stuff done here print "Stopped: strftime( "%a %b %d %T %Z %Y", localtime )\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Start / Stop Time Module
by Anonymous Monk on Aug 12, 2010 at 19:19 UTC | |
|
Re: Start / Stop Time Module
by oko1 (Deacon) on Aug 13, 2010 at 00:09 UTC | |
|
Re: Start / Stop Time Module
by awohld (Hermit) on Aug 13, 2010 at 01:49 UTC | |
by Tux (Canon) on Aug 13, 2010 at 06:24 UTC |