{"id":6035,"date":"2019-12-25T16:58:04","date_gmt":"2019-12-25T08:58:04","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6035"},"modified":"2019-12-25T16:58:05","modified_gmt":"2019-12-25T08:58:05","slug":"perl","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/perl","title":{"rendered":"perl\u547d\u4ee4 – \u5b9e\u7528\u62a5\u8868\u63d0\u53d6\u8bed\u8a00"},"content":{"rendered":"\n

\u4f7f\u7528perl\u547d\u4ee4\u53ef\u4ee5\u626b\u63cf\u4efb\u610f\u6587\u672c\u6587\u4ef6\uff0c\u4ece\u8fd9\u4e9b\u6587\u672c\u6587\u4ef6\u4e2d\u63d0\u53d6\u4fe1\u606f\u4f18\u5316\u7684\u8bed\u8a00\uff0c\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u6253\u5370\u62a5\u544a\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong> perl [\u53c2\u6570] [\u7a0b\u5e8f\u6587\u4ef6]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-c<\/td>\u53ea\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5<\/td><\/tr>
-e<\/td>\u53ef\u4ee5\u8ba9Perl\u7a0b\u5e8f\u5728\u547d\u4ee4\u884c\u4e0a\u8fd0\u884c<\/td><\/tr>
-l<\/td>\u542f\u7528\u884c\u7ed3\u675f\u5904\u7406\uff0c\u6307\u5b9a\u884c\u7ed3\u675f<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u53ea\u5bf9\/root\/program.pl\u6587\u4ef6\u8fdb\u884c\u8bed\u6cd5\u68c0\u67e5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# perl -c \/root\/program.pl<\/pre>\n\n\n\n

\u8ba9Perl\u7a0b\u5e8f\u5728\u547d\u4ee4\u884c\u4e0a\u8fd0\u884c\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# perl -e 'print \"Hello World\\n\"' Hello World<\/pre>\n\n\n\n

\u8ba9Perl\u7a0b\u5e8f\u5728\u547d\u4ee4\u884c\u4e0a\u8fd0\u884c\uff0c\u542f\u7528\u884c\u7ed3\u675f\u5904\u7406\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# perl -le 'print \"Hello Linux\"'<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528perl\u547d\u4ee4\u53ef\u4ee5\u626b\u63cf\u4efb\u610f\u6587\u672c\u6587\u4ef6\uff0c\u4ece\u8fd9\u4e9b\u6587\u672c\u6587\u4ef6\u4e2d\u63d0\u53d6\u4fe1\u606f\u4f18\u5316\u7684\u8bed\u8a00\uff0c\u6839\u636e\u8fd9\u4e9b\u4fe1\u606f\u6253\u5370\u62a5\u544a\u3002 \u8bed\u6cd5\u683c\u5f0f\uff1a […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6035"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6035"}],"version-history":[{"count":1,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6035\/revisions"}],"predecessor-version":[{"id":6037,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6035\/revisions\/6037"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6035"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}