{"id":11805,"date":"2015-08-14T21:27:02","date_gmt":"2015-08-14T21:27:02","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=11805"},"modified":"2015-08-14T21:27:02","modified_gmt":"2015-08-14T21:27:02","slug":"perl-arrays-array-length","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/perl-arrays-array-length\/","title":{"rendered":"Perl arrays:  array length"},"content":{"rendered":"<h1>The tutor shows Perl&#8217;s way of finding the length of an array.<\/h1>\n<p>For an intro to arrays, with a Perl example, see my post <a href=\"?p=5096\">here<\/a>.<\/p>\n<p>Finding the length of an array is done, in Perl, as follows:<\/p>\n<p><span style=\"font-family:monospace\">$ln=@arra0;<br \/>\nprint $ln;<br \/>\n<\/span><\/p>\n<p>will output the length of the array <span style=\"font-family:monospace\">@arra0<\/span>.<\/p>\n<p>I&#8217;ll be posting another Perl array trick soon:)<\/p>\n<p>Source:<\/p>\n<p>McGrath, Mike.  <u>Perl in easy steps<\/u>.  Southam:  Computer Step, 2004.<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor shows Perl&#8217;s way of finding the length of an array. For an intro to arrays, with a Perl example, see my post here. Finding the length of an array is done, in Perl, as follows: $ln=@arra0; print $ln; &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/perl-arrays-array-length\/\"> <span class=\"screen-reader-text\">Perl arrays:  array length<\/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":[105],"tags":[104,991,992],"class_list":["post-11805","post","type-post","status-publish","format-standard","hentry","category-computer-science","tag-perl","tag-perl-array","tag-perl-array-length"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/11805","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=11805"}],"version-history":[{"count":10,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/11805\/revisions"}],"predecessor-version":[{"id":11815,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/11805\/revisions\/11815"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=11805"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=11805"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=11805"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}