in reply to anonymous filehandle for overridden open sub

... but then strict complains.

What is strict complaining about?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco.
Rule 1 has a caveat! -- Who broke the cabal?

Replies are listed 'Best First'.
Re^2: anonymous filehandle for overridden open sub
by blahblahblah (Priest) on Apr 07, 2005 at 18:59 UTC
    Good question. It was saying:

    Bareword "AFILE" not allowed while "strict subs" in use at (the line where the open call is)

    Is it significant that this code is in a sub that's autoloaded, where the autoload boils down to this?:

    eval 'require "$fileThatContainsTheSub"'; &$varThatContainsNameOfSub;
    I think it must be, because when I paste this sub into a small test script (no autoload), strict doesn't complain.

    -Joe