in reply to Class::Std, 5.6.1, and AUTOLOAD

The glob assignments only sort of take place at run time. They're in a module which, presumably, your code uses, so Perl loads it, compiles it, executes the code in it outside of subroutines, and then calls its import() if it exists.

I don't know what specific bug Perl 5.6.1 had though.

Replies are listed 'Best First'.
Re^2: Class::Std, 5.6.1, and AUTOLOAD
by rjbs (Pilgrim) on Sep 22, 2005 at 17:04 UTC
    ...but those glob assignments are inside the same file as everything else I showed you. Within that file, the subs should be defined first, the attribute handling set up, and then the "runtime" assignment should occur, right? Being inside use doesn't flatten the file's internal order of execution. (That is, BEGIN inside a use'd module still happens before non-BEGIN in there.) If that's true, and I'm fairly sure it is, then I still don't see why this works.
    rjbs