"perldoc -f ref" on my Perl installation (5.8.8) contains:
Builtin types contains:
Note the absence of "Regexp". Yet, when I do
perl -e '$r=qr//; print ref $r'
I get "Regexp" as output. Is this simply missing from the documentation (I note it's included in the perldoc to 5.10)? If so, does anyone know with which Perl version ref started recognising Regexp? Is this reliable for <5.10? (I don't care about overloaded funkyness or objects in this case, this will be used to recognize parameters passed into a function, and if users want to shoot themselves in the foot by passing in weirdness they're welcome ;-). Thanks muchly.