{"id":906,"date":"2005-11-02T15:12:00","date_gmt":"2005-11-02T10:12:00","guid":{"rendered":"http:\/\/chris.dwan.org\/?p=906"},"modified":"2005-11-02T15:12:00","modified_gmt":"2005-11-02T10:12:00","slug":"perl-humor","status":"publish","type":"post","link":"https:\/\/chris.dwan.org\/?p=906","title":{"rendered":"Perl humor"},"content":{"rendered":"<p>So, I&#8217;m hackin&#8217; some PERL.  As frequently happens, the fact that it&#8217;s PERL leads me down this crazy obscure path of references to arrays and arrays of references.  I would up doing something the hardest and most bass-ackwards way possible:<\/p>\n<p><code> print ${@{split(\/ \/, $string)}}->[$i] . \"\\n\";<\/code><\/p>\n<p>This produced an error message I&#8217;ve never seen before, but which made me giggle:<\/p>\n<p><code>Bizarre copy of ARRAY in leave at .\/test line 5.<\/code><\/p>\n<p>The scary part of this is that they foresaw my hack, and coded a specific error message for it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, I&#8217;m hackin&#8217; some PERL. As frequently happens, the fact that it&#8217;s PERL leads me down this crazy obscure path of references to arrays and arrays of references. I would up doing something the hardest and most bass-ackwards way possible:<\/p>\n<p> print ${@{split(\/ \/, $string)}}->[$i] . &#8220;\\n&#8221;;<\/p>\n<p>This produced an error message I&#8217;ve never seen <span style=\"color:#777\"> . . . &rarr; Read More: <a href=\"https:\/\/chris.dwan.org\/?p=906\">Perl humor<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[36],"_links":{"self":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts\/906"}],"collection":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=906"}],"version-history":[{"count":0,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=\/wp\/v2\/posts\/906\/revisions"}],"wp:attachment":[{"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=906"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=906"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chris.dwan.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=906"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}