undefined in what sense? Perl's behavior is defined by its source code, perhaps unless contradicted by docs.

UPDATE ick, I got pulled into a pointless discussion. To short-circuit it: anything that works consistently (that is, not dependent on random or OS/environment-dependent factors) in perl 5.8.* is acceptable for these exercises.