develooper Front page | perl.perl5.porters | Postings from May 2003

Re: [perl #8860] [not RESOLVED] .pmc extension not documented in require

Thread Next
David Dyck
May 9, 2003 13:02
Re: [perl #8860] [not RESOLVED] .pmc extension not documented in require
Message ID:

This really isn't resolved, as
 perldoc -f require states

               If EXPR is a bareword, the require assumes a ".pm"
               extension and replaces "::" with "/" in the
               filename for you, to make it easy to load standard
               modules.  This form of loading of modules does not
               risk altering your namespace.

but it doesn't mention .pmc.

If an appropriate file with a .pmc extension exists
(and is newer than a similar .pm file, or no .pm file is
found) perl will load the .pmc file.

This behavior is not documented in perldoc -f require.

dd:tmp$ cat
warn "Hello World\n";
dd:tmp$ cat
warn "Goodbye World\n";

dd:tmp$ perlcc -B -o Echox.pmc
/usr/local/bin/perlcc: Will not create a shared library for bytecode
dd:tmp$ touch
dd:tmp$ perl -le 'require Echox'
Goodbye World
dd:tmp$ touch Echox.pmc
dd:tmp$ perl -le 'require Echox'
Hello World

Same perl code, different output, based on timestamps of .pm and .pmc files!

On Fri, 9 May 2003 at 15:47 -0000, Casey West via RT <perlbug-followup@perl...:

> From: Casey West via RT <>
> To: dcd
> Date: 9 May 2003 15:47:29 -0000
> Subject: [perl #8860] [RESOLVED] .pmc extension not documented in require
> According to our records, your request regarding
>   ".pmc extension not documented in require"
> has been resolved.
> If you have any further questions or concerns on the above subject, please
> respond to this message.
> For other topics, please create a new ticket.
> Please don't feel obligated to say "Thanks" or "Kudos" or "I want to have your
> child" or "I owe you a beer" -- if you respond to this message it will reopen the
> ticket. If you must, please send email directly to the person who handled your
> ticket, and not to the tracking system.
> <URL: >

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About