On Mon, Jan 24, 2005 at 12:43:54PM -0500, Ronald J Kimball wrote:
> On Mon, Jan 24, 2005 at 10:37:16AM -0600, Steve Peters wrote:
> 
> > Looking at the perldoc for use, anything after the module name must be a 
> > list.
> > So, 
> > 
> > use base "C";
> > 
> > is correct, and 
> > 
> > use base C;
> > 
> > should give you a compile error as you demonstrated above.
> 
> I think the complaint was that the error message is "Unknown error" rather
> than something more descriptive, like "Bareword not allowed after module
> name in use statement".

This appears to be fixed in bleedperl:

    $ ./perl -I/home/davem/tmp/x -Ilib -MA
    Bareword "C" not allowed while "strict subs" in use at 
/home/davem/tmp/x/A.pm line 5.
    Compilation failed in require.
    BEGIN failed--compilation aborted.
    $

somewhere between changes 19162 and 19306; probably 19170 judging by the
log entry:

[ 19170] By: rgs                                   on 2003/04/08  19:47:05
        Log: Subject: [PATCH] Re: Error: Unknown error
             From: Enache Adrian <[EMAIL PROTECTED]>
             Date: Tue, 8 Apr 2003 07:12:13 +0300

Looks like it never got integrated into the 5.8.x branch.


-- 
"Do not dabble in paradox, Edward, it puts you in danger of fortuitous
it." -- Lady Croom - Arcadia

Reply via email to