{"id":37094,"date":"2019-02-12T17:53:40","date_gmt":"2019-02-12T17:53:40","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=37094"},"modified":"2019-02-12T17:53:45","modified_gmt":"2019-02-12T17:53:45","slug":"perl-map","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/perl-map\/","title":{"rendered":"Perl: map"},"content":{"rendered":"\n<h2>Tutoring Perl: the tutor gives an example of Perl&#8217;s fantastic map function.<\/h2>\n\n<p>Suppose you have the array (1,2,3,4), but you want to musically enhance it to (and a 1, and a 2,&#8230;.)<\/p>\n<p style=\"font-family:monospace;font-size:120%\">\n@arr=map {&#8216;and a &#8216;.$_} (1,2,3,4);<\/p>\n<p>yields<\/p><p>\n@arr = (and a 1, and a 2, and a 3, and a 4)<\/p>\n<p>\nSource:\n<\/p>\n<p>\n<a href=\"https:\/\/www.youtube.com\/watch?v=_IXkmSAqBvk\">Tutorials Point (India) Pvt. Ltd.<\/a>\n<\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n","protected":false},"excerpt":{"rendered":"<p>Tutoring Perl: the tutor gives an example of Perl&#8217;s fantastic map function. Suppose you have the array (1,2,3,4), but you want to musically enhance it to (and a 1, and a 2,&#8230;.) @arr=map {&#8216;and a &#8216;.$_} (1,2,3,4); yields @arr = &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/perl-map\/\"> <span class=\"screen-reader-text\">Perl: map<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2943],"tags":[],"class_list":["post-37094","post","type-post","status-publish","format-standard","hentry","category-perl"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=37094"}],"version-history":[{"count":3,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37094\/revisions"}],"predecessor-version":[{"id":37097,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/37094\/revisions\/37097"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=37094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=37094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=37094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}