Below is a piece of code that will NOT compile (syntax error) in
sub strerr, that uses an anounimous hash for which all the keys
are numbers. We've tested this code in Amsterdam.pm and found it
to look like a parser inconsistency. If the hash starts with a
bareword, like sub errstr, it works out like intended. We concluded
that the parser might be confused if the intended hash was to be
a code block or an anonimous hash, but the result is - in our humble
opinion - inconsistent. (BTW using ordonary numbers instead of hex
does not influence this behaviour).
using perl5.005.03 on HP-UX 10.20, HP-UX 11.00, AIX 4.2, AIX 4.3,
DEC OSF/1 4.0 and WinNT 4.0, often with perlTk 800.015
Member of Amsterdam Perl Mongers (http://www.amsterdam.pm.org/)
Configuration as shown below runs on both HP 9000/800 D390 (shown)
and HP 9000/800 L1000 both running HP-UX 11.00 (64 bit)
Code example fails on *ALL* systems mentioned above.
The code above has also been tested in Amsterdam on our PM meeting,
but I do not know the system it ran on.