in reply to Strict isn't strict enough
Doctor, it hurts when I do this.
Don't define interfaces that require using fully-qualified names. As you noted, documenting that your interface requires such just makes it a "feature" of your design instead of a bug in your bad design.
package Slave; use strict; use Exporter qw< import >; use vars qw< @EXPORT_OK $type >; @EXPORT_OK = qw< $type >; # ... 1;
use strict; use Slave qw< $typo >;
use strict; use Slave qw< $type >; print $typo;
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Strict isn't strict enough (stop it)
by tobyink (Canon) on Dec 31, 2011 at 19:50 UTC | |
|
Re^2: Strict isn't strict enough (stop it)
by davies (Monsignor) on Dec 31, 2011 at 17:43 UTC | |
by tye (Sage) on Dec 31, 2011 at 18:02 UTC | |
by AnomalousMonk (Archbishop) on Dec 31, 2011 at 18:40 UTC | |
by davies (Monsignor) on Dec 31, 2011 at 19:12 UTC | |
by roboticus (Chancellor) on Jan 01, 2012 at 06:57 UTC |