
{"id":6706,"date":"2012-02-11T21:08:03","date_gmt":"2012-02-11T21:08:03","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=6706"},"modified":"2012-02-11T21:08:03","modified_gmt":"2012-02-11T21:08:03","slug":"stat-perl-api","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2012\/02\/11\/stat-perl-api\/","title":{"rendered":"stat Perl API"},"content":{"rendered":"<h4><u> Perl API &#8212; stat() <\/u><\/h4>\n<pre>\n$ls test.pl\ntest.pl\n$cat test.pl\nmy $result = stat('.\/test.pl');\nprint \"$result n\";\n$perl test.pl\n1\n$\n\n<\/pre>\n<p><\/p>\n<h4><u>Perl Explanation<\/u><\/h4>\n<pre>\nReturns a 13-element list giving the status info for a file, either\nthe file opened  via FILEHANDLE or DIRHANDLE, or  named by EXPR. If\nEXPR is omitted,  it stats $_ (not _ !). Returns  the empty list if\nstat fails.\n\n<\/pre>\n<p><\/p>\n<h5><u> computing Theory Drop <\/u><\/h5>\n<pre>\nstat() is a Unix system call  that returns useful data about a file\ninode. The  semantics of stat() vary between  operating systems. As\nan example, the Unix command  ls uses it to retrieve information on\n(among many others):\n\nsource : http:\/\/en.wikipedia.org\/wiki\/Stat_(system_call)\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Perl API &#8212; stat() $ls test.pl test.pl $cat test.pl my $result = stat(&#8216;.\/test.pl&#8217;); print &#8220;$result n&#8221;; $perl test.pl 1 $ Perl Explanation Returns a 13-element list giving the status info for a file, either the file opened via FILEHANDLE or DIRHANDLE, or named by EXPR. If EXPR is omitted, it stats $_ (not _ !). &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2012\/02\/11\/stat-perl-api\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;stat Perl API&#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\/6706"}],"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=6706"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/6706\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=6706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=6706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=6706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}