2006å¹´06æ24æ¥20:30 ã«ãã´ãªLightweight Languagesä¸æ¥ä¸è¡éé C - tailã¨queue ã©ãããªããããå°ãæ½°ããããããã«æ¸ãã¦ã¿ãã ã¯ãã¹ã«ã£ã# - Cè¨èªã§tailã£ã½ããã®ãæ¸ã ã¾ãï¼ææ¥å¦ç§ã®Cè¨èªã®ãã¹ããããï¼Cè¨èªãªãæ®æ®µã¾ã£ãã使ããªãããã ããï¼æãåºããã°ï¼ã¦ãã¨ã§ï¼10è¡åºå®çtailãæ¸ãã¦ã¿ãï¼ä»¥ä¸ã®ã½ã¼ã¹ï¼ã¾ãã¯ãmain()ã®æ¹ãããåçºæã ãã§ã¯è¸ãç¡ãã®ã§ãè¡æ°ããªãã·ã§ã³ã¨ãã¦æå®ã§ããããã«ãã¦ã¿ãã tail.c #include <stdio.h> #include <stdlib.h> #include <string.h> #define MAX_CHARS_IN_LINE 1024 #include "queue.h" char *new_string(const char *str){ cha
ãããªãã©ãæ¸ã 2.0 - ROUND 1 - â Lightweight Language Ring ã§PHPãªå¿åããªã件ã«ã¤ãã¦ã(TBå ¨é¨è¦ã¦ãªãã®ã§ããããã£ããããããªãã) ã¨ãããã¨ã§ãã£ã¡ãæ¸ãã¦ã¿ã¾ããã ã¢ã«ã´ãªãºã ã«åãã®ã¯è¦æã ããã¯ã³ã©ã¤ãã¼ã¯ç«¯ããPHPã«åãã¦ãªãã®ã§ããããããã¨ã«ãã¦â¦ãPHP5ã§å ¥ã£ãSPLããIteratorã¨ã使ã£ã¦ã¿ã¾ãããããã <?php class PrimeIterator extends FilterIterator { public function __construct($it) { parent::__construct($it); } public function accept() { $v = $this->current(); $divisor = 0; for ($i = 1; $i < $v; ++
RSSãã£ã¼ãã®ã¹ã¯ãªã¼ã³ã·ã§ããç»åã«ã¤ã㦠æ¨æ¥è¿½å ããRSSãã£ã¼ãã¸ã®ã¹ã¯ãªã¼ã³ã·ã§ããç»ååºåã«ã¤ãã¾ãã¦ãåæ æ¼ããããç»åãæ£å¸¸ã«åºåããã¦ããã¾ããã§ããããã¡ããä¿®æ£ãããã¾ããã idea:10735ã§ãææããã ããããã¨ããããã¾ããã ã¢ãã¤ã«çã®ã¯ã¦ãªã«ã¦ã³ã¿ã¼ãå ¬éãããã¾ãã æ¬æ¥ãã¢ãã¤ã«çã®ã¯ã¦ãªã«ã¦ã³ã¿ã¼ãå ¬éãããã¾ãããæºå¸¯é»è©±ãªã©ã®ã¢ãã¤ã«ç«¯æ«ã§ã¯ã¦ãªã«ã¦ã³ã¿ã¼ã®ããããã¼ã¸ã«ã¢ã¯ã»ã¹ãã¦ããã ãã¨ãã¢ãã¤ã«çããå©ç¨ããã ãã¾ãã ç¾å¨ã¢ãã¤ã«çã§ã¯ã¢ã¯ã»ã¹æ°ã®è¡¨ç¤ºã«ã®ã¿å¯¾å¿ãã¦ããããã©ã¦ã¶ããªã³ã¯å ã¨ãã£ãéè¨çµæãããã³ãã°ã®è¡¨ç¤ºã«é¢ãã¾ãã¦ã¯æªå¯¾å¿ã§ãã ä»å¾ãçæ§ããããã ãã¾ãããæè¦ãªã©ãå ã«ãæ©è½ã®æ¹åã¨å å®ãè¡ã£ã¦ããããã¨èãã¦ããã¾ãã®ã§ãã¯ã¦ãªã¢ã¤ãã¢çã§ãã²ãæè¦ããå¯ããã ããã ã©ãããå©ç¨ãã ããã æ¬æ¥å®è£ æ¸ã®
2006å¹´06æ14æ¥16:45 ã«ãã´ãªValue 2.0 åæã§ãªãã¦åè² ããããè² ããããããªãåè² ã»ã©ã¤ã¾ããªããã®ãã¾ããªãã®ã ã ä»ç³æµ©æã®æ¥è¨: è² ãããã¨ãæãããã¾ããåã¤ãã¨ã«ä¾¡å¤ãè¦ãã ããªããªã£ã¦ãã¾ã£ã人ãã¡ ãããããªãè² ãã人ããã®åéã«ãã ããå¿ è¦ãããã®ãï¼ ããåéã§è² ãã¦ããä»ã®åéã§è¦è¿ãã¦ããã°ããã§ã¯ãªããã ã¿ããªãããããèªåã«ä¸çªåãã¦ãããã¨ãããã°ã ãåã¡çµãã®å²åã¯ãã£ã¨ãã£ã¨å¢ããã ããããªãæã ãåè² ã«é ããããã?åè² ãã¦ã¿ãªãã¨ããããªãããã§ããã åæã決ããã ããªããã«ã¼ã¬ããã§ããã®ã ã以ä¸ã«åæã²ã¼ã ãç¨æãã¦ã¿ãã ãã®ãããªãã® ã楽ãã¿ããã ããã ããã?ç§ã¯ï¼åã§é£½ãã¦ãã¾ã£ãã åæã ã欲ãããã°ãçãçããã使ãã°ããã®ã ã ããã®ç®ã»ã©å ¬å¹³ãªãã®ã¯ãªãã®ã ãããæ ¼å·®ç¤¾ä¼ãããããªãã ãã¡ããããã
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
å®®å·ããããã§ã«Plaggerã使ã£ã¦ãã£ã¦ãã¾ãããã¡ãã£ã¨åã«è©±é¡ã«ãªã£ã MacBook ãªã©ã®è¡æãæç¥ãã¦ãªã«ãããã SmackBook ã®ãããªãã¨ã ThinkPad ã§ãã§ããã¨ãããã¨ã§ãèªåããããã¦ã¿ã¾ããã ãã£ãã®ã¯ ThinkPad ãå¾ãã㨠Firefox ã®ã¦ã£ã³ãã¦ãããã¡ãã«åãã¨ãããã®ã(Firefoxã®ã¦ã£ã³ãã¦éå®ã§ãâ¦) ããã¦ããããåä½ããã¦ããã®ã¯ Perl ã§ããã¯ãªã㦠Ruby ã§ãããªãã¨ãªãRubyã§æ¸ãã¦ã¿ã¾ããã Rubyã®ã¬ãã«ãããã¼ãã®ã¯æ°ã«ããªãã§ãã ããâ¦ã ä½æã«ãããããã¡ãã«ããããã°ã©ã ãåèã«ããã¦é ãã¾ããã ããã°ã©ã ã¯3ã¤ã®ãã¡ã¤ã«ã«åãã¦ã¦ã1ã¤ã¯åè¿°ã®ãã¼ã¸ã®ããã°ã©ã ã«æ·»ä»ããã¦ããdevice.rbããã¨ã¯ä»¥ä¸ã®2ã¤ã§ãã æ¬ä½(ãããå®è¡ãã) require 'device' req
ã¯ã¦ãªã°ã«ã¼ãã®çµäºæ¥ã2020å¹´1æ31æ¥(é)ã«æ±ºå®ãã¾ãã 以ä¸ã®ã¨ã³ããªã®éããä»å¹´æ«ãç®å¦ã«ã¯ã¦ãªã°ã«ã¼ããçµäºäºå®ã§ããæ¨ããç¥ãããã¦ããã¾ããã 2019å¹´æ«ãç®å¦ã«ãã¯ã¦ãªã°ã«ã¼ãã®æä¾ãçµäºããäºå®ã§ã - ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãã®ãã³ãæ£å¼ã«çµäºæ¥ã決å®ãããã¾ããã®ã§ã以ä¸ã®éãã確èªãã ããã çµäºæ¥: 2020å¹´1æ31æ¥(é) ã¨ã¯ã¹ãã¼ãå¸æç³è«æé:2020å¹´1æ31æ¥(é) çµäºæ¥ä»¥éã¯ãã¯ã¦ãªã°ã«ã¼ãã®é²è¦§ããã³æ稿ã¯è¡ãã¾ãããæ¥è¨ã®ã¨ã¯ã¹ãã¼ããå¿ è¦ãªæ¹ã¯ä»¥ä¸ã®è¨äºã«ãããã£ã¦æç¶ãããã¦ãã ããã ã¯ã¦ãªã°ã«ã¼ãã«æ稿ãããæ¥è¨ãã¼ã¿ã®ã¨ã¯ã¹ãã¼ãã«ã¤ã㦠- ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ ãå©ç¨ã®ã¿ãªãã¾ã«ã¯ãè¿·æãããããããã¾ãããã©ãããããããé¡ããããã¾ãã 2020-06-25 è¿½è¨ ã¯ã¦ãªã°ã«ã¼ãæ¥è¨ã®ã¨ã¯ã¹ãã¼ããã¼ã¿ã¯2020å¹´2æ28
JavaScriptããã ãã(id:nowokay)ã³ã¡ã³ããã¹ãã©ã¤ã¯ã§ããããã ãããã ãã¼ã0ã§åæã®æçµæ¥ã ãã new Date(year, month+1, 0).getDate(); (found at Determining the Number of Days in a Month with Javascript) function daysInMonth(month, year){ return 32 - new Date(year, month, 32).getDate(); } ããããããããããæ¥ä»ããã¼ã«ãªã¼ãã¼ããã¦åºç¤å¤ããå¼ãããããæ¥æ°ã®æ大å¤ããå¤ããã°ã32ã§ã40ã§ããããã ãªã ç§ãèããã®ã¯ãæåã®åæ¥ã®æ¥ã調ã¹ããã¤ã§ãDateãªãã¸ã§ã¯ããç¡é§ã§ããã function getLastDateOfMonth(year, month
2006å¹´06æ07æ¥04:25 ã«ãã´ãªiTech (a+a)/2 == -a /* åä¸ç´ãã®ã®ãã° */ æ£ä¸éããã¨ãçµç±ã§ã Official Google Research Blog: Extra, Extra - Read All About It: Nearly All Binary Searches and Mergesorts are Broken The bug is in this line: 6: int mid =(low + high) / 2; ãªãã¨ãããã¾ãªãã°ã å¤å ¸çãã¤ããªãµã¼ãã¢ã«ã´ãªãºã ã«ãã°: ãããã³ã¼ãã¼ã®èå°è£æ®éããã¯åé¡ã«ãªããªããã§ãããã¾ã®ã»ã¨ãã©ã®ãã·ã³ã¯ãintã32bitã ããããã®ã¢ã«ã´ãªãºã ã§ã2 ^ 31 - 1ã¨ããintã®æ大å¤ãè¶ ãããã㪠ãã¨ã¯ãªãããã ã¡ãã£ã¨éãã¾ããn >= (MAX_INT/2 +
YouTube ã®åç»ãéè³ã»åéããä¸ã§ä¾¿å©ã§ç´ æµãªãµã¼ãã¹ãããããã¨ç»å ´ãã¦ãã¾ãã Qooqle Video Qooqle Video Clippers! Tubeã¡ãããã: ï¼ch風YouTubãã¼ã¿ã« YouTubeãã©ã¦ã¶Î²ï¼ tubeã¡ãããã HATENA-TUBE ãã ã¾ãåã® Web ãã©ã¦ãºã®ããæ¹ã¯ãlivedoor Reader + YouTube + ã¯ã¦ãªããã¯ãã¼ã¯ã§æéåç»ã¦ã©ããã³ã°ãã§ç´¹ä»ããããã«ãå³é¸ãããµã¼ãã¹ã使ãè¾¼ãæãã§ããã以å¤ã¯ã¾ãã²ã¨æ§ã®ãªã³ã¯ã¨ããèªåã¨ãã®ããã¯ãã¼ã¯ã«èç©ãããã®çµç±ã§ãã YouTube ã®åç»ãè¦ãªãã ãããªãã¨ãæãããã§ãã ãããªæãããããããã¨ã - del.icio.usä¸ã®YouTubeã¸ã®ãªã³ã¯ãç´æ¥è¦ãããã¦ã³ãã¼ãã§ããGreasemonkey ã«ã¦å ¬éããã¦ããã¹ã¯ãªããã«è§¦çºããã¦ã
2006å¹´05æ31æ¥00:30 ã«ãã´ãªValue 2.0 ãµã«ã«ãæãããªãªã¸ãã«çµµç»å ¥é ããã«è¿½ãæã¡ããããã¨ããããªãã¾ãã FIFTHãEDITION: åµä½ã®ææ³ããã¯ãªã®ææ³ ããªãªã¸ããªãã£ãã¯ã人éã¯ãã£ã¦ãã¾ãããããã¯äººã®æã«ä½ããã®ã§ããããã追ãæ±ãããã¨ãã¦ãç¡é§ã ã¨æã£ã¦ãã¾ãã 人éã¯ããªãªã¸ãã«ãç解ãããã¨ããåºæ¥ãªãã Paint ããªãªã¸ãã«ããããæ¢åã®ä½åã®çµã¿åããã«éå ã§ããªããã®ãã¨è§£éããã¨ããããªã£ã¦ãã¾ãã¾ãã ãªãªã¸ãã«ãªçµµã欲ãããã°ãâã®ãã¿ã³ãã¯ãªãã¯ããã°ããããã§ãæãã¦ããã¾ã(ãã©ã¦ã¶ã«ãã£ã¦ã¯æéãããããã)ã è¦ã¦ã®ã¨ãããé»è³ã®æ¹ããã£ã¨ãªãªã¸ãã«ãªä½åã®è£½ä½ã«é·ãã¦ããã®ã§ãããããã¯ãã¿ã¤ãã©ã¤ã¿ã¼ã®åã«åº§ã£ããµã«ã®æ¹ãã å®ã¯å®å®ã§ããããªãªã¸ãã«ãã§ã¯ããã¾ãããä¸å®ã®æ³åãããã¾ãããããç©çã¨ç§°
è¿·æãã©ãã¯ããã¯å¯¾çï¼ãã©ãã¯ããã¯â¦ ããã«ã¡ã¯ã楽天åºå ´ã§ãã è¿·æãã©ãã¯ããã¯å¯¾çã¨ãã¦ããã©ãã¯ããã¯URLã®æå·åãè¡ãã¾ããã #!/usr/local/bin/perl use strict; use HTML::Entities; use HTML::TokeParser; use LWP::Simple; my $url = 'http://plaza.rakuten.co.jp/hirobastaff/diary/200605290000/'; print rakuten_hiroba_trackback_auto_discovery($url), "\n"; sub rakuten_hiroba_trackback_auto_discovery { my $url = shift; my $content = get($url) or die "can't fet
YouTube ã¦ã°æé«ãªãã ãã©ãæ¤ç´¢çµæã® feed ãªãã®ï¼ãªãã§ï¼ã¨ãæã£ã¦ãããã¼ã¸ã®ãã¡ã°ãä¸ã«ãã RSS ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦ã説æãã¼ã¸ãåºã¦ããã ãã ããã[æ¯] YouTube ã§ã¿ã°ã«ãã RSS ãã£ã¼ããåå¾ããã«ã¯ããèªãã§ãããæ©ã¨ã¡ãã§ãããã¨ãç¥ã£ããã YouTube ã§ã¯æè¿äººæ°ã®åç»ã® RSS ãã£ã¼ããé ä¿¡ãã¦ãã¾ããï¼ã¿ã°ã«ãã RSS ãã£ã¼ããåå¾ã§ãããã¨ãåããã¾ããï¼ ã¤ããã§ã以ä¸ã®ãããªãã©ã¼ãããã«ãªã£ã¦ãã¨ã®ãã¨ã (feed|http)://www.youtube.com/rss/tag/tag1+tag2+tag3.rssYouTube ã®èª¬æã«ã¯æ¸ããã¦ãªãã£ããã©ãã¿ã°ãè¤æ°æå®ããå ´å㯠"+ (%2B)" ã§ã¿ã°ãã¤ãªãã§ããã°ããã¿ããã以ä¸ã説æã¯ã¡ããã¨èªã¿ã¾ããããï¼ã¨ããã話ã§ããï¼ï¼ï¼ â¦â¦ã£ã¦ãã§ã¯
2006å¹´05æ26æ¥13:45 ã«ãã´ãªMath ã³ããã大å¦æ°å¦ç§ç¬¬6è¬ ä»é±ã¯æ¨æ¥ãä»æ¥ã人ã¨ä¼ãæ©ä¼ãå¤ãã¦blogã®æ´æ°ãæ»ããã¡ã§ãç¹ã«æ°´ææ¥ã®é¨ã§ãã¶ã¬ãã«ãªã£ã¦ããã¡ãã£ã¨ä½èª¿å´©ãæ°å³ãªã®ããããã¨è¦ã¦ãã¾ã£ãã³ããã大å¦æ°å¦ç§ã ãã¼ã人ã®ç©èªVIII å¡©éä¸ç ã³ã大æ°å¦ç§ã¨ãã¼ãã¨ã®é¢ä¿ãç¥ãããæ¹ã¯ããç¶ãããã ä»åã®é¡§åã¯ä¸æå çã åé¡: 1ãã200ã¾ã§é ã«çªå·ãæ¯ã£ãã«ã¼ãããä¸æç®ãæå¾ã«æå¾ã«ã¾ãããäºæç®ãæ¨ã¦ã¨ããæä½ãç¹°ãè¿ãã¾ããæå¾ã®ä¸æã®çªå·ã¯? ã³ã大çã¯ãã¤ãã®ããã«å®è·µãããã§ã¯ã«ã¼ãã®ä»£ããã«ããããããã¹ã使ã£ã¦ãäºæç®ãæ¨ã¦ã代ããã«é£ã¹ãã¨ããæä½ãç¹°ãè¿ããããã¹åéã¯æ£è§£ã¾ã§ã®éçãæ£ããèªèããããå®éã«ãããè¨ç®ããã«è³ããã®ãã¢ããããããã¦æ±å¤§å¥³å大çãã¼ã ã¯ãæ£ããããããæ´ç·´ããä¸æ©ããã°ãªã解æ³ãè¦ã¤ãããã
å¼æ°ã«å ¨é¨$ãããå ´åã arguments = $A(arguments).map(function(e){ return $(e); });ãããã arguments = $.apply(null, arguments)ããããã¨æ¥½ãã³ã ããã¡ãã£ã¨éãã ãï¼å½ããåï¼ ãã¿ã¾ãããä»æ¥æ°ãä»ãã¾ããã
mixi ãã¥ã¼ã¸ãã¯éä¿¡ã¢ã¸ã¥ã¼ã«ãä½ã£ã¦ã¿ãï¼ï¼ã¯ã¾ã¡ã¡ããã®mixi ãã¥ã¼ã¸ãã¯éä¿¡æ©ãã¾ãã¾ Perl ã¢ã¸ã¥ã¼ã«ã«ç§»ãå¤ããã ãã ãâ¦ï¼ ãããããã°ãmixi station (mixi ãããã¦ã³ãã¼ãã§ããã㤠win/mac) ã¨ããiTunes ãªãã§ããæ°ã«å ¥ãã®æ²ãã¬ã³ã¬ã³éä¿¡ãã Perl ã¹ã¯ãªãããæ¸ãã¡ãããããããªããï¼ ãã£ããï¼ ã§ãã¼ã貧ä¹ã§ãã¬ãã¢ã ä¼å¡ã«ãªããéããªãããããã®ã¢ã¸ã¥ã¼ã«ã¯å ¨ãã®æªãã¹ããªãã ãã©ï¼ 使ãæ¹ã¯ãã³ã¼ãå ã® SYNOPSIS ãè¦ã¦ãï¼ææããããªãããDRY ã ãâ¦ï¼ mixi ãã¬ãã¢ã ä¼å¡ã®ã²ã¨ã¯ãããã£ãããããã¦ã¿ã¦ãï¼ â¦ã¡ããã¨åããããããªããã©ï¼ ã§ãããã¾ãããéããã¨ãã¯ã¾ã¡ã¡ããã¿ããã« ID ban ããã¡ãããï¼ã»ã©ã»ã©ã«ãâ¦ï¼ 追è¨ã ã¨ããã£ã¦ãããYappo ããã Publish
æååãçµåããã¡ã½ãããJavaScriptã«åå¨ãããã¨ã¯åãã£ã¦ããã®ã«ããã®ã¡ã½ããã®ååãæãåºããããªãã¡ã¬ã³ã¹ãä¸ã åç §ãããã¨ã¯ããã¾ãããï¼ ãããªæã«ä¾¿å©ãªMethod Finderãä½ã£ã¦ã¿ã¾ããããªãã¸ã§ã¯ãã»è¿ãå¤ã»å¼æ°ãä¸ããã¨ãMethod Finderã¯ãããã®æ¡ä»¶ãæºããã¡ã½ããåãè¿ãã¾ããå ã ã¯SmallTalkã«ãã£ãæ©è½ã®ããã§ããç§ãJavaScriptã®ã¡ã½ããåãããå¿ããã®ã§ãMethod Finderã®JavaScriptçãä½ã£ã¦ã¿ã¾ãããä¸è¨ã®ãµã¤ããã試ãã¾ãã Method Finder for JavaScript å®è£ ã«ã¯Andrew Birkett's MethodFinder in Rubyãåèã«ãã¾ããã ã¡ã¤ã³ã®ã³ã¼ãã¯ãããªæãã§ãããã¾ãæ ¼å¥½ããããã¾ããã 追è¨:id:brazilãããããã©ãã¯ããã¯ãé ãã¾
Mozilla ããã£ã¡ãã£ã¡ã§çºè¡¨ãã¦ãã JavaScript 2.0 http://developer.mozilla.org/presentations/xtech2006/javascript/ http://ajaxian.com/downloads/presentations/eich-ajax-experience-2006/ ä¸ã¤ä¸ã¤èªãã§ã¿ã¦ãèªåã使ãã¨æãç®æã ããã½ã¼ã¹ã§æ¸ãã¦ã¿ãã(èªåã®ãªãã¤ã³ãç¨ãªã®ã§ã¡ããã£æ±ã)ã Type Annotation JS1 var i; var element = document.getElementById('someInput'); i = parseInt(element.value); // æ°å¤å JS2 var i : int; // åæå® var element = document.getElement
ã¢ã¯ã»ãµ(2) AUTOLOAD ã§ã¢ã¯ã»ãµ - ã±ããæ¥è¨ ã¢ã¯ã»ãµã®ä½ææ¹æ³ã¯ãããããããã©èªä½ãããªãAUTOLOADã¨ã使ããã«ã package Hoge::Class; use strict; for my $method (qw/age name tel hoge/) { my $code = sub { my $self = shift; $self->{$method} = shift if @_; return $self->{$method}; }; no strict 'refs'; *{$method} = $code; } ã£ã¦æãã§ã¯ãã¼ã¸ã£ã¨åã°ããã§å®ç¾©ããã°ãããã¨ã AUTOLOAD使ããªã使ãã§ãååå¼ã³åºãæã«ã¡ã½ããå®ç¾©ãã¦ãã¾ãã®ãã»ãªãªã¼ãªãã§ã äºåº¦ç®ä»¥éã¯AUTOLOADãå¼ã³åºãããªããªãããé ãã¨ããåé¡ã¯è§£æ±ºãããã¨ã sub A
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}