Data::ClearSilver::HDFããªãªã¼ã¹
æ¨æ¥ã®å¤ã«ãªãªã¼ã¹ãã¾ããã
ã¡ã¨ææããã¡ãã£ãã®ã§PODãé©å½*1ãªãã§ãããã¨ãããã使ãæ¹ã¨ãã¦ã¯ã
use strict; use warnings; use ClearSilver; use Data::ClearSilver::HDF; my ClearSilver::HDF $hdf = Data::ClearSilver::HDF->hdf({ foo => 1, bar => ["a".."g"], baz => { "x" => "aaa", "y" => "bbb", "z" => "ccc" } }); my ClearSilver::CS $cs = ClearSilver::CS->new($hdf);
ã®ããã«ä½¿ãã¾ãã
ã¾ãã©ããé«éåãè¨ãããæºstaticãªãã¼ã¸ãããã¨ãã¦ããã¿ãªè¨è¿°ãã¦ã¦å¤é¨HDFãä½ãããéãªã©ãã
Perlã®ãã¼ã¿å½¢å¼ã§ãã®ã¾ã¾ãã¼ã³ã¨è¡ããã®ã§ãã¾ããããªãã«ä½¿ãéããããªã¨ã
hdf_dump()ã¡ã½ããã«é¢ãã¦ã¯å
é¨ã§ä¸æãã¡ã¤ã«ãä½ãã¨è¨ãææã*2ã£ã·ããªã®ã§ã
ã¾ãã¾ãClearSilverã®APIãèããã¨ãã¹ã以å¤ã«ä½¿ãäºã¯ç¡ãã¨æããã§ããã
å®éç¨ãããããªéã«ã¯ãæ°ãã¤ãä¸ããã
*1:æ¯åº¦ã§ããã©w
*2:ClearSilver::HDFã¯ãªãã¸ã§ã¯ãããHDFã®æå表ç¾ãç´æ¥åãåºããªãã