Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

broquaint (2964)

  (email not shown publicly)

Journal of broquaint (2964)

Wednesday April 24, 2002
02:59 PM

You learn something new about perl every day

[ #4434 ]
Apparently qr// returns a blessed reference, and a brief inspection with blessed() reveals that it is of the type Regexp

shell> perl -MScalar::Util=blessed -e 'print blessed(qr/^\s*$/), $/'

Huh. I imagine a good dig at the perl source might explain how and why this is (something to do with the /o flag apparently).

I also had it driven into me (once more) as to why pdcawley glows with evil light when he demonstrated how to do tail call optimization in perl for his upcoming Scheme interpreter. If this is productive coding (which it most certainly is) then I fear to see what he could do when wields his power with the intent of doing "evil things" ...

broquaint out

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.