- "unimport @opts"
- Magically called when "no indirect @args" is encountered. Turns the
- module on. If @opts contains ':fatal', the module will croak on the
- first indirect syntax met.
+ "unimport [ hook => $hook | ':fatal' ]"
+ Magically called when "no indirect @opts" is encountered. Turns the
+ module on. The policy to apply depends on what is first found in @opts :
+
+ * If it's the string ':fatal', the compilation will croak on the first
+ indirect syntax met.
+
+ * If the key/value pair "hook => $hook" comes first, $hook will be
+ called for each error with the object name as $_[0] and the method
+ name as $_[1].
+
+ * Otherwise, a warning will be emitted for each indirect construct.