Fun Perl question
Robin Barker
Robin.Barker at npl.co.uk
Tue Mar 4 10:37:56 GMT 2008
> So there's me with this bit of code that's running a bit slow. I run
> the following command:
>
> perl -M:DProf ./test.pl
>
> and then follow it with dproffpp to see the results. I'm then left
> scratching my head to work out why I've got "Unable to open tmon.out"
> before spotting my silly mistake.
>
> The fun question is: why did the original command seem to work?
And
perl -wM:DProf ./test.pl
cryptically says:
Useless use of a constant in void context.
More recent development versions of perl would give:
Useless use of a constant (DProf) in void context.
As of perl at 33407, "perl -M:DProf ./test.pl" fails with:
Invalid module name :DProf with -M option: contains single ':'.
Robin
-------------------------------------------------------------------
This e-mail and any attachments may contain confidential and/or
privileged material; it is for the intended addressee(s) only.
If you are not a named addressee, you must not use, retain or
disclose such information.
NPL Management Ltd cannot guarantee that the e-mail or any
attachments are free from viruses.
NPL Management Ltd. Registered in England and Wales. No: 2937881
Registered Office: Serco House, 16 Bartley Wood Business Park,
Hook, Hampshire, United Kingdom RG27 9UY
-------------------------------------------------------------------
More information about the london.pm
mailing list