import socket socket.gethostbyname(socket.gethostname()) Perl 㧠IO::Interface 使ãã¨ãããããæ¹ãããã¿ãããã§ããã£ã¡ã®ã»ããæ¨æºã¢ã¸ã¥ã¼ã«ã ãã§åºæ¥ãã®ã§æ¥½ã ãä»çµã¿ã¯ããã¾ãããã£ã¦ãªãã»ã»ã»ããã¼ã«ã«IPã¢ãã¬ã¹ã¨ã°ãã¼ãã«IPã¢ãã¬ã¹ãå²ãæ¯ããã¦ãã¨ãã¨ããã©ããªããã ããã ã¯ã³ã©ã¤ãã¼ã§ãããªããããã $ python -c "import socket; print socket.gethostbyname(socket.gethostname())"Perl ã¹ã¯ãªããã®ä¸ãã使ããã¨ãã§ããï¼æ¬æ«è»¢åæ°å³ï¼ #!perl use strict; my $cmd = "python -c 'import socket; print socket.gethostbyname(socket.ge
{{#tags}}- {{label}}
{{/tags}}