2010-08-01ãã1ã¶æéã®è¨äºä¸è¦§
perlã®Webã¢ããªã±ã¼ã·ã§ã³ããããã¤ããæ¹æ³ãèãã¦ã¾ãããã ç´å¾ããæ¹æ³ãã§ããã«æ®å¿µãªãã¨ã«ã ãµã¼ãæ§æ â ãããã¤ãµã¼ãå ¼webãµã¼ã â¡ãããã¤å webãµã¼ãæ°å° ããããã£ãæµã Webãµã¼ãã®OSã¨ã¢ã¼ããã¯ãã£ãä¸ç·ã§ããã° è¤æ°ãµã¼ãã¸ã®ãâ¦
â»2010/8/21 ã¢ã¸ã¥ã¼ã«ãå°ãæ¸ãç´ãã ãã¹ãã¯ãã£ã±ãåããããã¯ãã§ãã£ãã»ãããããï¼ã¨å©è¨é ãã¾ããã®ã§Test::mysqld使ããã¨ã«ãã¾ããã èªåã®ããæ¹ã¯ããããé åããã¦ãæ°ããã¾ãããä¸å¿èªåã®ãããããã¨ã¯ã§ããã®ã§ã¡ã¢ã¡ã¢ã ã¡â¦
åãã¦ã®perlï¼ç¶åãã¦ã®perlï¼ã¢ãã³perlå ¥éã¨ãã¦ã 次ã¯ä½èªãããã¨èãä¸ã ãã£ã±ãã©ã¯ãæ¬ï¼ï¼åã§ï¼ä¸åã¯èãã¦ãã¾ãâ¦ããã°ã©ãã³ã°PerlãVOLUME1ãposted with amazlet at 10.08.21ã©ãªã¼ ã¦ã©ã¼ã« ã¸ã§ã³ ãªã¼ã¯ã³ã ãã ã¯ãªã¹ãã£ã³ã»ã³ â¦
ã©ãã§ããã話ã ãµãã«ã¼ãã³ã®å¼æ°ã®æ¸¡ãæ¹ã«ã¤ãã¦ãã©ãããã®ãããããã¤ãæ©ãã ï¼ï¼ãããªã®ã hoge( $id, $name, $path, ); sub hoge { my ($id,$name,$path) = @_; ... } ï¼ï¼ãããªã®ã hoge( { id => $id, name => $name, path => $path, } );â¦
éå»ã®pasteä¸è¦§ãåºãããã«ç´ããã ãã http://gist.github.com/513680 æ¢ã«ä»¥åã®ãã¼ã¸ã§ã³ã§ä½¿ã£ã¦ã¦ã ALTER TABLE ããã ãã§ä½¿ããããã«ãªãã¯ã! ALTER TABLE entry ADD COLUMN title text; ã¬ã³é¯ã«ç½®ãã¦ã¿ããï¼ http://toritori0318.sakura.nâ¦
ãªãã§ãããããããããã¨ããããã¨ããã®ãã¨ããã¨ãã¢ãã«ï¼APIï¼ããã¹ãããã¨ãã«ãã¹ããã¼ã¿ãã¼ã¹ãã©ãããããã¨ããã®ãèãã¦ãããã ããããèãã¦ã¿ãçµæããDBMSãå ¨é¨SQLiteã«å¤æãã¦ãã¼ã«ã«SQLiteä¸ã«ã¦ãã¸ãã¯ã ããã¹ããããâ¦
ããããã®ç¡ãã£ããã¤ãã£ã¦ã¿ããããªã¼ã¨æã£ããã§ããããã£ã±ãããã¾ãããã ãã¹ãç¨ã§ä½¿ã£ãsqlæ(oracle) CREATE TABLE EMP (EMPNO NUMBER(4) NOT NULL, ENAME VARCHAR2(10), JOB VARCHAR2(9), MGR NUMBER(4), HIREDATE DATE, SAL NUMBER(7, 2),â¦
ãã£ã£ã£ã£ã£ã£ã¤ãå¿ãã¦ã°ã°ãã®ã§ã¡ã¢ã£ã¨ãã open my $fh, "<", "file.txt"; my $data = do{ local $/; <$fh>}; close $fh; print $data; ã¢ã¸ã¥ã¼ã«ä½¿ãããªã Perl6::Slurp ã楽ã¡ãã use Perl6::Slurp; my $data = slurp 'file.txt'; print $data;