
{"id":8274,"date":"2013-03-23T21:18:06","date_gmt":"2013-03-23T21:18:06","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8274"},"modified":"2013-03-23T21:18:06","modified_gmt":"2013-03-23T21:18:06","slug":"perl-at-sign-and-array","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/03\/23\/perl-at-sign-and-array\/","title":{"rendered":"PERL  @ (at sign) and ARRAY"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$cat array.pl\n#!\/usr\/bin\/perl\nuse strict;\nuse warnings;\n\n\nmy @colors = (\"red\",\"green\",\"blue\");\nprint \"@colors\";\nprint \"n\";\n$perl array.pl\nred green blue\n$vim array.pl\n$cat array.pl\n#!\/usr\/bin\/perl\nuse strict;\nuse warnings;\n\n\nmy @colors = (\"red\",\"green\",\"blue\");\nprint \"@colors\";\nprint \"n\";\nprint $color[0];\nprint \"n\";\n\n$perl array.pl\nGlobal symbol \"@color\" requires explicit package name at array.pl line 9.\nExecution of array.pl aborted due to compilation errors.\n$vim array.pl\n$cat array.pl\n#!\/usr\/bin\/perl\nuse strict;\nuse warnings;\n\n\nmy @colors = (\"red\",\"green\",\"blue\");\nprint \"@colors\";\nprint \"n\";\nprint $colors[0];\nprint \"n\";\n\n$perl array.pl\nred green blue\nred\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $cat array.pl #!\/usr\/bin\/perl use strict; use warnings; my @colors = (&#8220;red&#8221;,&#8221;green&#8221;,&#8221;blue&#8221;); print &#8220;@colors&#8221;; print &#8220;n&#8221;; $perl array.pl red green blue $vim array.pl $cat array.pl #!\/usr\/bin\/perl use strict; use warnings; my @colors = (&#8220;red&#8221;,&#8221;green&#8221;,&#8221;blue&#8221;); print &#8220;@colors&#8221;; print &#8220;n&#8221;; print $color[0]; print &#8220;n&#8221;; $perl array.pl Global symbol &#8220;@color&#8221; requires explicit package name at array.pl line &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/03\/23\/perl-at-sign-and-array\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PERL  @ (at sign) and ARRAY&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8274"}],"collection":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/comments?post=8274"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8274\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}