
{"id":5646,"date":"2011-08-26T19:06:17","date_gmt":"2011-08-26T19:06:17","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=5646"},"modified":"2011-08-26T19:06:17","modified_gmt":"2011-08-26T19:06:17","slug":"scalar-pl-x-strings","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2011\/08\/26\/scalar-pl-x-strings\/","title":{"rendered":"scalar.pl &#8212;-x strings"},"content":{"rendered":"<h5><u> A UNIX Command <\/u><\/h5>\n<pre>\n$perl scalar.pl\nThe variable $fred contains Fred here.\nSum is 66.\n$cat scalar.pl\n$fred = \"Fred here\";\n$barney = 56;\n$sum = 10 + $barney;\nprint 'The variable $fred' . \" contains $fred.\\n\";\nprint \"Sum is $sum.\\n\";\n\n$cat scalar.pl\n$fred = \"Fred here\";\n$barney = 56;\n$sum = 10 + $barney;\nprint 'The variable $fred.' . \" contains $fred.\\n\";\nprint \"Sum is $sum.\\n\";\n\n$perl scalar.pl\nThe variable $fred. contains Fred here.\nSum is 66.\n$cat scalar.pl\n$fred = \"Fred here\";\n$barney = 56;\n$sum = 10 + $barney;\nprint \"The variable $fred.\" . \" contains $fred.\\n\";\nprint \"Sum is $sum.\\n\";\n\n$perl scalar.pl\nThe variable Fred here. contains Fred here.\nSum is 66.\n$\n\n<\/pre>\n<p><\/p>\n<h5><u> UNIX Explanation <\/u><\/h5>\n<pre>\nVarious operations on scalar (string) variables.\n<\/pre>\n<p>source: http:\/\/sandbox.mc.edu\/~bennet\/perl\/leccode\/var1_pl.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A UNIX Command $perl scalar.pl The variable $fred contains Fred here. Sum is 66. $cat scalar.pl $fred = &#8220;Fred here&#8221;; $barney = 56; $sum = 10 + $barney; print &#8216;The variable $fred&#8217; . &#8221; contains $fred.\\n&#8221;; print &#8220;Sum is $sum.\\n&#8221;; $cat scalar.pl $fred = &#8220;Fred here&#8221;; $barney = 56; $sum = 10 + $barney; print &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2011\/08\/26\/scalar-pl-x-strings\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;scalar.pl &#8212;-x strings&#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\/5646"}],"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=5646"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/5646\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=5646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=5646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=5646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}