From: Barrie Slaymaker Date: Tue, 27 Nov 2001 10:58:54 +0000 (-0500) Subject: add export tag :all and tweak SYNOPSIS X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f36484b00ee361eaebe87327215b5a06d9950de5;p=p5sagit%2Fp5-mst-13.2.git add export tag :all and tweak SYNOPSIS Message-ID: <20011127105850.B696@sizzle.whoville.com> p4raw-id: //depot/perl@13321 --- diff --git a/lib/Benchmark.pm b/lib/Benchmark.pm index 9de9974..3f8eb62 100644 --- a/lib/Benchmark.pm +++ b/lib/Benchmark.pm @@ -6,6 +6,8 @@ Benchmark - benchmark running times of Perl code =head1 SYNOPSIS + use Benchmark qw(:all) ; + timethis ($count, "code"); # Use Perl code in strings... @@ -402,8 +404,9 @@ use Exporter; @EXPORT=qw(timeit timethis timethese timediff timestr); @EXPORT_OK=qw(timesum cmpthese countit clearcache clearallcache disablecache enablecache); +%EXPORT_TAGS=( all => [ @EXPORT, @EXPORT_OK ] ) ; -$VERSION = 1.02; +$VERSION = 1.03; &init;