{"id":533,"date":"2015-05-14T22:38:55","date_gmt":"2015-05-14T13:38:55","guid":{"rendered":"http:\/\/tajibook.com\/?p=533"},"modified":"2015-05-15T01:00:56","modified_gmt":"2015-05-14T16:00:56","slug":"get-and-set-environment-variable","status":"publish","type":"post","link":"https:\/\/blog.codebase.co.jp\/en\/get-and-set-environment-variable","title":{"rendered":"Get and Set Environment Variable"},"content":{"rendered":"<p>In Perl, environment variables for the OS are\u00a0stored in &#8220;%ENV&#8221; hash. So, for example, environment variable &#8220;PATH&#8221; can be gotten like this.<\/p>\n<pre class=\"lang:perl decode:true\">my $path = $ENV{\"PATH\"};<\/pre>\n<p>Setting environment variable is also easy. You can just add an element to %ENV.<\/p>\n<pre class=\"lang:perl decode:true\">$ENV{\"PATH\"} = $path;<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In Perl, environment variables for the OS are\u00a0stored in &#8220;%ENV&#8221; hash. So, for example, environment  (&hellip;) <a href=\"https:\/\/blog.codebase.co.jp\/en\/get-and-set-environment-variable\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"en_US","_original_post":"531","footnotes":""},"categories":[26],"tags":[],"class_list":["post-533","post","type-post","status-publish","format-standard","hentry","category-perl","en-US"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/comments?post=533"}],"version-history":[{"count":2,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/533\/revisions"}],"predecessor-version":[{"id":535,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/posts\/533\/revisions\/535"}],"wp:attachment":[{"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/media?parent=533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/categories?post=533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.codebase.co.jp\/wp-json\/wp\/v2\/tags?post=533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}