tag:blogger.com,1999:blog-4206098438326334482.post6210689785664588571..comments2022-06-15T04:18:57.416-04:00Comments on SvOK(get_sv("main::blog", 0));: Parts of Perl you never knew existedChas. Owenshttp://www.blogger.com/profile/11716389363199045015noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-4206098438326334482.post-14389319039870650802010-03-03T15:47:56.027-05:002010-03-03T15:47:56.027-05:00More fun stuff: calling close() with no arguments....More fun stuff: calling close() with no arguments.brunovhttps://www.blogger.com/profile/11144836575476600438noreply@blogger.comtag:blogger.com,1999:blog-4206098438326334482.post-80998216516232506242010-03-03T14:26:43.462-05:002010-03-03T14:26:43.462-05:00@Michael Yeah, recursive regexes are part of it. ...@Michael Yeah, recursive regexes are part of it. I put "recursion" and "differences between scalar and list context" under warnings by mistake.Chas. Owenshttps://www.blogger.com/profile/11716389363199045015noreply@blogger.comtag:blogger.com,1999:blog-4206098438326334482.post-73137339518614728832010-03-03T12:50:57.612-05:002010-03-03T12:50:57.612-05:00Don't forget fun things like Sub::Uplevel. Ex...Don't forget fun things like <a href="http://p3rl.org/Sub::Uplevel" rel="nofollow">Sub::Uplevel</a>. Explaining how it works should scare people pretty well.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4206098438326334482.post-41425505405654616092010-03-03T11:06:13.407-05:002010-03-03T11:06:13.407-05:00Don't forget to talk about putting code refs o...Don't forget to talk about putting code refs or even objects into @INC!<br /><br />To find a good list of scary things, try to think of all the situations where "no strict $something" is appropriate and acceptable. That should come up with some interesting cases.<br /><br />Also, XS (or rather perlapi) offers a wide range of WTF's. My personal favourite (not part of the API) is how (I think) List::Util creates a "mock" OP for calling rand()/srand() from XS. This is probably surpassed by Chocolateboy's dynamic pp_entersub-replacing in Class::XSAccessor.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4206098438326334482.post-46672068533820534902010-03-03T10:34:37.440-05:002010-03-03T10:34:37.440-05:00For regexes, I suggest talking about recursive reg...For regexes, I suggest talking about recursive regular expressions. Scary, mind blowing and awesome all at the same time.Michaelhttps://www.blogger.com/profile/12467020639540612364noreply@blogger.com