
{"id":8268,"date":"2013-03-17T20:07:34","date_gmt":"2013-03-17T20:07:34","guid":{"rendered":"http:\/\/www.beautifulwork.org\/?p=8268"},"modified":"2013-03-17T20:07:34","modified_gmt":"2013-03-17T20:07:34","slug":"perl-testing-print-only-oknot-ok","status":"publish","type":"post","link":"https:\/\/www.trueangle.org\/index.php\/2013\/03\/17\/perl-testing-print-only-oknot-ok\/","title":{"rendered":"PERL TESTING Print only ok\/not ok"},"content":{"rendered":"<h4><u>commandline session<\/u><\/h4>\n<pre>\n$cat test5.pl\n#!\/usr\/bin\/perl\nuse strict;\nuse warnings;\n\nmy $result;\n\n$result = `\/usr\/bin\/concalc 1  + 1`;\nprint $result;\nif ( $result == 1 ) {\n    print \"okn\";\n}\nelse {\n    print \"not okn\";\n}\n\n$result = `\/usr\/bin\/concalc 2 + 2`;\nif ( $result == 4 ) {\n    print \"okn\";\n}\nelse {\n    print \"not okn\";\n}\n\n$result = `\/usr\/bin\/concalc 2 + 2 + 2`;\nif ( $result == 6 ) {\n    print \"okn\";\n}\nelse {\n    print \"not okn\";\n}\n\n<hr \/>\n\n$perl test5.pl\ntcsetattr fehler: Invalid argument\ntcsetattr error: Invalid argument\n2\nnot ok\ntcsetattr fehler: Invalid argument\ntcsetattr error: Invalid argument\nok\ntcsetattr fehler: Invalid argument\ntcsetattr error: Invalid argument\nok\n$\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>commandline session $cat test5.pl #!\/usr\/bin\/perl use strict; use warnings; my $result; $result = `\/usr\/bin\/concalc 1 + 1`; print $result; if ( $result == 1 ) { print &#8220;okn&#8221;; } else { print &#8220;not okn&#8221;; } $result = `\/usr\/bin\/concalc 2 + 2`; if ( $result == 4 ) { print &#8220;okn&#8221;; } else { print &#8220;not &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.trueangle.org\/index.php\/2013\/03\/17\/perl-testing-print-only-oknot-ok\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;PERL TESTING Print only ok\/not ok&#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\/8268"}],"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=8268"}],"version-history":[{"count":0,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/posts\/8268\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/media?parent=8268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/categories?post=8268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.trueangle.org\/index.php\/wp-json\/wp\/v2\/tags?post=8268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}