From: Vincent Pit Date: Sun, 25 Jul 2010 17:57:47 +0000 (+0200) Subject: POD formatting fixes X-Git-Tag: v0.06~2 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fsubs-auto.git;a=commitdiff_plain;h=3bc0cd788c6ace6eea35d808c5dd640b13e2d7ce;hp=35b937a8dd5f9a174be4404495bf65137ccf3fbc POD formatting fixes --- diff --git a/lib/subs/auto.pm b/lib/subs/auto.pm index deeec16..decd4f4 100644 --- a/lib/subs/auto.pm +++ b/lib/subs/auto.pm @@ -51,7 +51,11 @@ You can pass options to C as key / value pairs : C<< in => $pkg >> -Specifies on which package the pragma should act. Setting C<$pkg> to C allows you to resolve all functions name of the type C in the current scope. You can use the pragma several times with different package names to allow resolution of all the corresponding barewords. Defaults to the current package. +Specifies on which package the pragma should act. +Setting C<$pkg> to C allows you to resolve all functions name of the type C in the current scope. +You can use the pragma several times with different package names to allow resolution of all the corresponding barewords. + +Defaults to the current package. =back @@ -234,9 +238,13 @@ None. =head1 CAVEATS -C<*{'::foo'}{CODE}> will appear as defined in a scope where the pragma is enabled, C is used as a bareword, but is never actually defined afterwards. This may or may not be considered as Doing The Right Thing. However, C<*{'::foo'}{CODE}> will always return the right value if you fetch it outside the pragma's scope. Actually, you can make it return the right value even in the pragma's scope by reading C<*{'::foo'}{CODE}> outside (or by actually defining C, which is ultimately why you use this pragma, right ?). +C<*{'::foo'}{CODE}> will appear as defined in a scope where the pragma is enabled, C is used as a bareword, but is never actually defined afterwards. +This may or may not be considered as Doing The Right Thing. +However, C<*{'::foo'}{CODE}> will always return the right value if you fetch it outside the pragma's scope. +Actually, you can make it return the right value even in the pragma's scope by reading C<*{'::foo'}{CODE}> outside (or by actually defining C, which is ultimately why you use this pragma, right ?). -You have to open global filehandles outside of the scope of this pragma if you want them not to be treated as function calls. Or just use lexical filehandles and default ones as you should be. +You have to open global filehandles outside of the scope of this pragma if you want them not to be treated as function calls. +Or just use lexical filehandles and default ones as you should be. This pragma doesn't propagate into C. @@ -258,7 +266,8 @@ You can contact me by mail or on C (vincent). =head1 BUGS -Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. +Please report any bugs or feature requests to C, or through the web interface at L. +I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT