X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=lib%2Findirect.pm;h=09090c226e1edef1e91d0bcd491921ff25fbe6e4;hp=86cdf37762768dcc281965c9de5d28cb37fbad11;hb=2b4cc6c04da4c960652e76a3b14e32554550f3e1;hpb=28344f23a0e0d25ff130a5745a91e85fbadfcd6f diff --git a/lib/indirect.pm b/lib/indirect.pm index 86cdf37..09090c2 100644 --- a/lib/indirect.pm +++ b/lib/indirect.pm @@ -181,7 +181,8 @@ If you want to re-enable the pragma later, you also need to reload it by deletin The implementation was tweaked to work around several limitations of vanilla C pragmas : it's thread safe, and does not suffer from a C bug that causes all pragmas to propagate into Cd scopes. -C (no semicolon) at the end of a file won't be seen as an indirect object syntax, although it will as soon as there is another token before the end (as in C or C). +Before C 5.12, C (no semicolon) at the end of a file is not seen as an indirect object syntax, although it is as soon as there is another token before the end (as in C or C). +If you use C 5.12 or greater, those constructs are correctly reported. With 5.8 perls, the pragma does not propagate into C. This is due to a shortcoming in the way perl handles the hints hash, which is addressed in perl 5.10.