[ABE.pm] recent code
Ricardo SIGNES
rjbs-perl-abe at lists.manxome.org
Sun Jul 4 21:25:16 CDT 2004
* Lidie Steve <sol0 at Lehigh.EDU> [2004-07-04T22:02:05]
> On Jul 1, 2004, at 6:57 PM, Ricardo SIGNES wrote:
> >
> >I've actually been writing code, which is nice. That is, I'm not just
> >doing crappy work code that's all about fixing employment records or
> >automating finance reports. Yay!
>
> 1) request an example that one can run before installation
>
> 2) so I came up with this:
>
> perl -Mblib -e 'use Acme::ProgressBar; progress {sleep 5}'
>
> it took 47 seconds to execute, so I am confused
I have uploaded Acme::ProgressBar 1.003, which fixes this problem. I am
dumb!
I had a base iteration (run and time the code) and then the delays and
message updates. For some reason, I only delayed and updated eight
times, when I clearly needed nine. Thanks for reminding me that we use
base ten here on Earth.
> although all being equal I would have tought this would have performed
> similarly:
>
> perl -Mblib -e 'progress {sleep 5}'
Nope! -Mblib will only find blib and put it into your path. It won't
actually use the code in there. So, this would've worked:
perl -Mblib -MAcme::ProgressBar -e'progress {sleep 5}'
I never use blib, for no good reason. I always use -I lib, since it
saves me having to 'make' before testing.
--
rjbs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.pm.org/pipermail/abe-pm/attachments/20040704/e0479b32/attachment.bin
More information about the ABE-pm
mailing list