On Thu, Sep 14, 2006 at 09:28:19PM -0400, Michael G Schwern wrote: > Ovid wrote: > > Also, for purposes of backwards compatability, I'm concerned about qr// and > > $code->(). > > When were those first introduced in Perl? I don't want someone using > > really old versions to not be able to use this code. > > qr// was introduced in 5.6. $code->() has been in there as long as I know. > "use warnings" is 5.6. > > To give you an idea, the Test-Simple distribution has been broken on 5.5.3 > for a few releases now (Test::Builder::Tester uses qr//) and I've gotten a > grand total of one bug report about it.
I think that it came in with 5.005_00. Certainly, it's in 5.005_03, which is the earliest version I can find precompiled: $ perl5.00503 -le '$a = qr/(.*)/; $] =~ $a; print $1' 5.00503 So whatever the actual cause of the bug leading to the report is, it wouldn't seem to be what the reporter thought it was. Nicholas Clark