In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/d4c800c79388007845ea9c00700f877d7da0ccb9?hp=33e9feea41a1ba8a58b32a5478d1dda0f7bcd052>
- Log ----------------------------------------------------------------- commit d4c800c79388007845ea9c00700f877d7da0ccb9 Author: Jarkko Hietaniemi <[email protected]> Date: Thu Mar 3 09:01:05 2016 -0500 Warn of the "else syndrome". Not that anyone ever reads perlport. M pod/perlport.pod commit 61988e87ad52189f879c360ba9c0853205771268 Author: Jarkko Hietaniemi <[email protected]> Date: Thu Mar 3 08:57:32 2016 -0500 Clarify what AmigaOS version was broken by 5.8.0 M pod/perlport.pod ----------------------------------------------------------------------- Summary of changes: pod/perlport.pod | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pod/perlport.pod b/pod/perlport.pod index 86be9b3..d77dfa9 100644 --- a/pod/perlport.pod +++ b/pod/perlport.pod @@ -745,6 +745,17 @@ to other platforms easier. Use the C<Config> module and the special variable C<$^O> to differentiate platforms, as described in L<"PLATFORMS">. +Beware of the "else syndrome": + + if ($^O eq 'MSWin32') { + # code that assumes Windows + } else { + # code that assumes Linux + } + +The C<else> branch should be used for the really ultimate fallback, +not for code specific to some platform. + Be careful in the tests you supply with your module or programs. Module code may be fully portable, but its tests might not be. This often happens when tests spawn off other processes or call external @@ -2241,7 +2252,7 @@ will work fine with the 5.8.0. Known to be broken for 5.8.0 (but 5.6.1 and 5.7.2 can be used): - AmigaOS + AmigaOS 3 The following platforms have been known to build Perl from source in the past (5.005_03 and earlier), but we haven't been able to verify -- Perl5 Master Repository
