æ®æ®µããè¯ã使ããã§ã¡ã¢ã DBã¨ãã«ã¦ãã¼ã¯ãªå¤ãçªã£è¾¼ãæã¨ãã«ã©ã³ãã æååçæã¨ããããããã¨ã ã§ãPerlã§ã©ã³ãã æååãçæãããã¨æã£ããString::Randomããªã¹ã¹ã¡ã è²ã ä½ãæ¹ããããã ãã©ä¸çªä¾¿å©ãªã®ã¯randregexã¡ã½ããã use String::Random; my $rand_str = String::Random->new->randregex('[A-Za-z0-9]{32}'); ãããªæãã§æ£è¦è¡¨ç¾ãæå®ã§ããã®ã§ä¸è¨ã®ããã«æ¸ãã¨32æ¡ã®è±æ°åã§ã©ã³ãã ãªæååãçæãã¦ãããã ã¡ãªã¿ã«DBã«çªã£è¾¼ãç®çãªãDBIx::Class::RandomStringColumnsã£ã¦ã®ãString::Randam使ç¨ãã¦åæã«çªã£è¾¼ãã§ããããããã®ã§ä¾¿å©ã ã£ããããã
{{#tags}}- {{label}}
{{/tags}}