s5r.jp About Name shunirr Location Tokyo, Japan Using Services Hatena Blog Scrapbox Twitter Github Contacts Twitter @shunirr Email m at s5r dot jp Game Accounts Steam shunirr PSN shunirr Xbox shunirr Nintendo SW-3097-5307-8703
ãã®ã¨ãã社å ã®æè¡åå¼·ä¼ã§åãä¸ãã¦ãããã¼ãã® Perl::Criticããã®ã¢ã¸ã¥ã¼ã«ã¯ãDamian Conway ã® Perl Best Pracitice ã«æ¸ããã¦ããã¹ã¿ã³ãã¼ã㪠Perl ã®ã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ããã§ãã¯ããããã®ãã®ã§ããPerl::Critic ãã¤ã³ã¹ãã¼ã«ãã㨠perlcritic ã¨ããã³ãã³ããã¤ã³ã¹ãã¼ã«ãããããã使ããã¨ã§èªåãæ¸ãã Perl ã®ã½ã¼ã¹ããã§ãã¯ãããã§ããã¨ããã ããããªã³ã¼ãã£ã³ã°ã¹ã¿ã¤ã«ã®ã«ã¼ã«ã¨ãã¯ãPerl::Critic::Policy ã®ãµãã¯ã©ã¹ã«è¨è¿°ããã¦ãã¦ãpod ã§å ¨é¨èªãã¾ãã ãã® Perl::Critic ãªããªã·ã¼ã®ä¸ã« Perl::Critic::Policy::BuiltinFunctions::ProhibitStringyEval ã¨ããã®ãããã¾ãããã㯠eval ã«ã¯æ
Perl ã®ã¢ã¯ã»ãµã¢ã¸ã¥ã¼ã«ã¨ãã¦ã¯ãClass::Accessor::Fast ã人æ°ããã # ããã¯ä¾ package Hoge; use base 'Class::Accessor::Fast'; __PACKAGE__->mk_accessors(qw( req )); sub new { my $class = shift; bless { url => 'http://e8y.net/', req => HTTP::Request->new, }, $class; } ãããªé¢¨ãªãããã·ã¥ã« bless ããããããã¯ã©ã¹ã®å ´åã«ããã®ããã·ã¥ã®ãã¼ã¨åãååã§getterãä½æãã¦ããã¨ãå±æ§ã«ã¢ã¯ã»ã¹ããå ´åï¼$hoge->urlï¼ã¨å±æ§ã®ãªãã¸ã§ã¯ãã®ã¡ã½ãããå¼ã¶å ´åï¼$hoge->req->header()ï¼ã«ããã¬ã¼ã¹{} ãéä¸ã«å ¥ã£ã¦ããªãã®ã§è¦ãããããã
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at
Redirecting⦠Click here if you are not redirected.
好ããªãã®ã¯ç©ºã¨ç·ã¨S2000ã¨ã¬ã³ãã ã¨ã©ã¸ã³ã³ã»ããåé§ãPerfumeï¼ããããï¼ãã¨ãã©ãåè²ã¦ã¨ãã£ã³ãã MT3.11jaã®ãã¤ãããã¯ãã¼ã¸ã試ããã¨ãããã®ã®ãSQLã¨ã©ã¼ãçºçãã¦ä»ã®ä»ã¾ã§åºæ¥ã¾ããã§ãããããããæåããã®ã§ããã®ã¤ã³ã¹ãã¼ã«ã¡ã¢ã -OS redhat9 httpdãªã©ã¯ããããgccãªã©éçºãã¼ã«ããããã®ã¿ã - apache1.3.3 download apache ./configure --prefix=/usr/local/apache --enable-module=rewrite --enable-module=so --enable-module=proxy - mysql 4.0.22(rpm) download mysql rpm -Uvh MySQL-client-4.0.22-0.i386.rpm MySQL-server-
åæè¨å®ã誤ã£ãããããCPANã®åè¨å®ãè¡ããããã¦ãããããªãã ã§ãè²ã ã¨èª¿ã¹åã£ãçµæããããªããæ¹ããã£ãã cpan> o conf init ãããããã£ãã æ稿è kurumania : 05/06/21 ãã©ãã¯ãã㯠ãã®ã¨ã³ããªã¼ã®ãã©ãã¯ããã¯URL: http://linux.kurumania.net/cgi-bin/mt-tb.cgi/37 ã³ã¡ã³ã ã³ã¡ã³ããã¦ãã ãã
以ä¸ã¯ãä»ãµã¤ãã«æ²è¼ããã¦ããæç¨ãªWWW::Mechanize使ç¨ä¾ã§ãã ç§èªèº«ããAmazon ã¢ãã£ãªã¨ã¤ãã¬ãã¼ãããè¦ã¦ãæ¬å½ã«ãã®WWW::Mechanizeã使ãããã¨æãã¾ããã Amazon ã¢ãã£ãªã¨ã¤ãã¬ãã¼ã(blog.bulknews.net)ã WWW::Mechanize ã使ã£ã¦ bk1 ã®æ³¨æå±¥æ´ãåå¾ããã¹ã¯ãªãã(www.asmate.net)ã mixiã®è¶³ãã¨ãåå¾ããã¹ã¯ãªãã(digit.que.ne.jp)ãæ¥è¨ãæ稿ããã¹ã¯ãªããã®ã¢ã¬ã³ã¸ã§ãã æå®ããã«ãã´ãªã®ãä»æ¥ã®ä¸è¦§ãåå¾ã ã次ã®ãã¼ã¸ãã追ãããã¦å¦çãã¾ãã use strict; use WWW::Mechanize; my $url = 'http://headlines.yahoo.co.jp/hl'; my $cate_label = 'ã³ã³ãã¥ã¼ã¿ä¸è¦§'; m
http://d.hatena.ne.jp/urapico/20071110/1194668943 I had the same trouble on another distro -- the solution (for me) was to delete all the Compress::Zlib files (or at least files under my perl installation containing the word "Compress" or "Zlib") and just restart CPAN and install what I needed. That way, a fresh Compress::Zlib (and whatever else I deleted) was downloaded from CPAN and installed. h
Scalar::Util::weaken 使ã£ã¦ãã¹ã¯ãªãããå ¨æ» ã ï¼ç¥ï¼ ãªãã§ã ãã¼ã¨ããã£ã¦ã¨ãããã Scalar::Util åã¤ã³ã¹ãã¼ã«ãããç´ã£ãã è¬éããããåããã¼ã¸ã§ã³ã ã£ãã®ã«ã ãã¡ã§ãåãç¾è±¡ãçºçãã¾ããã $ perl -MScalar::Util=weaken -e 42 Weak references are not implemented in the version of perl at -e line 0 BEGIN failed--compilation aborted. $ perl -MScalar::Util -e 'print Scalar::Util->VERSION' 1.18CLONtypesterããã¨åããåã¤ã³ã¹ãã¼ã«ãããç´ãã¾ããã $ cpan -fi Scalar::Util $ perl -MScalar::Ut
Plagger 注æ ãã®ãã¼ã¸ã¯åãªãã¤ã³ã¹ãã¼ã«æé ã®ã¡ã¢ã§ããPlaggerã¯éçºãæ´»çºãªã®ã§ãããã®æ å ±ã¯å¤ããªã£ã¦ãããã¨ãå¤ãã§ãã Plaggerã«ã¤ãã¦ã®æ£ç¢ºãªèª¬æ㯠Plaggerå ¬å¼ãµã¤ã Shibuya.Plaggers Plagger Plugin ã¯ã¦ãªããã¯ãã¼ã¯ - ã¿ã° plagger ãªã©ãåç §ãã¦ãã ããã æ¦è¦ãç¥ãããå ´åã¯å ¬å¼ãµã¤ãã®Presentationsã«ãããYAPC::Asia 2006 TokyoããPlagger Conference 1 Keynoteãã®ã¹ã©ã¤ããåç §ããã¨ããã§ãããã代表çãªãã¢ã¨ãã¦Elementary, ... Googleã§ãã¯ãã¸ã£ããã¨æ¤ç´¢ããã¨ãã¶ãå±ãããã«ããã¾ã§ãããã¾ãã 解説 Plaggerã¯ãmixiãBloglinesãWebãµã¤ããªã©æ§ã ãªã¨ãããããã¼ã¿ãåã£ã¦æ¥ã¦ããããããªãã£
ãã1ã¶æã»ã©(ãªãããªãâ¦)ãã¡ã¾ã¡ã¾ã¨åå¼·ãã¦ããCGI::Application::Dispatchã«ã¤ãã¦ã使ãæ¹ãããªãã¦æ¥ãã®ã§ãããããã§ã²ã¨ã¾ã¨ãã§ãã ä½ããã¢ã¸ã¥ã¼ã«ï¼ ãã®åå¼·ä¸ã¨ã³ããªã¼ã®ï¼åç®ã§ãæ¸ãã¾ããããCGI::Applicationãå©ç¨ããã¢ããªã§å¿ è¦ã«ãªãã¤ã³ã¹ã¿ã³ã¹CGIã¯ä½ããã«ãURI(PATH_INFO)ããå®è¡ããã¢ã¸ã¥ã¼ã«ã¨Runã¢ã¼ãã決å®ãããã¨ããã¢ã¸ã¥ã¼ã«ã§ããnewãã¦runããã ãã®ã¤ã³ã¹ã¿ã³ã¹CGIãªããæ¯åæ¸ããããªãããã¨ããã®ãã¢ã¸ã¥ã¼ã«ä½è ããã®æå³ã®ããã§ã(PODã«ãããã¾ã)ã URIã¯ãããªã CGI::Application::Dispatchã使ã£ãå ´åã®URIã¯ã ã¨ãªãã¾ãã CGI::Applicationãç¶æ¿ããMyApp::Indexã¨ããã¢ã¸ã¥ã¼ã«ãä½ã£ãå ´åããããå®è¡ããããã®URIãæ¯
ãã£ã¨ãPlaggerã使ããã¨ããã¾ã§ãã©ãçãããlivedoor Readerã®æ´æ°FeedãGmailã«ã©ãã£ã¨å±ãããããããããã ãã¦ãPlaggerã«ãã©ãçãã¾ã§ã«ã¯ãããã¤ãã®ã¢ã¸ã¥ã¼ã«ã¤ã³ã¹ãã¼ã«ã¨ãã®ãã¹ãã®å¤±æãããããã®å¦¥åãæ±ãæ¶ãç¡ç ä¸è¶³ãªã©ã®å°é£ãä¼´ã£ãããã *1ããã®ãããã§CPANãPerlã«ã¤ãã¦ããã£ããã¨ãããã¦ã¿ããã¨ã«ããã CPANã¯ä¾¿å©ã§ããããã WWW::YouTubeã¨ãHatena::Formatterã¨ãMac::Glueã¨ãããã£ã¨ã»ã³ã»ã¼ã·ã§ãã«ãªã¢ã¸ã¥ã¼ã«ããããããããããCPANæ¼ã£ããPlaggerã®ä¾åã§å ¥ãã¢ã¸ã¥ã¼ã«ãçºãã¦ããã¨ããããªã®ãã¢ã¸ã¥ã¼ã«åããã¦ãã®ãï¼ã£ã¦ãã©ãããã¨ãå¤ããããã»ãã¨èªåã§ã³ã¼ãæ¸ãå¿ è¦ããã®ãã¨ããã»ã©ã®å å®ã¶ãã CPANæ¼ãã«ã¯ã¢ã¸ã¥ã¼ã«ã«é¢ããããããªæ å ±ããã¤ã¾ã£ãCP
[Perl] LWP::UserAgentãå©ç¨ããã°WEBãã¼ã¿ãåå¾ã§ãã¾ããGETã¡ã½ããã®ã¿ã§ãããLWP::Simpleã®æ¹ãç°¡åã§ããã¡ãªã¿ã«httpsã§ã®åå¾ãå¯è½ã§ãããCrypt::SSLeayãã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã [ãµã³ãã«] #!/usr/bin/perl use LWP::UserAgent; my $ua = LWP::UserAgent->new; #ã¿ã¤ã ã¢ã¦ããè¨å® $ua->timeout(10); #ã¦ã¼ã¶ã¨ã¼ã¸ã§ã³ããè¨å® $ua->agent('Mozilla'); #GETãPUTãPOSTãDELETEãHEADã®ãããããæå®ï¼httpsã®å ´åã¯httpsã«ããã ãï¼ my $req = HTTP::Request->new(GET => 'http://www.ksknet.net'); #ãªãã¡ã©ã¼ãè¨å® $req->ref
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}