Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
    1. Using “our” will make your code incompatible with old perls.

    2. File-scoped “our” is OK, but lexically scoped “our” is bad; see Ben Tilly’s rant.

    Note that if you only need to change a few globals once (eg. set up @ISA and $VERSION when your class is loaded), then you can simply move those bits above the “use strict” line. Then you need neither “our” nor “use vars”.