use Foo () ã¨ããã¨ãFoo->importãå¼ã°ããªãã®ã¯ãªãã
perl5ã®è©±é¡ã
use Foo
ã¨ããã¨Fooãrequireãã¤ã¤ãFoo->import
ãå¼ã°ãããã¨ã¯ããç¥ããã¦ãããã
use Foo ()
ã¨ããã¨ãã«ã¯ãimportã¯å¼ã°ããªãã
ãããã©ããã風ã«ãã¦å®ç¾ãã¦ããã®ãåããçåã«æã£ã¦ããã ã¨ããã®ãæ®éã®é¢æ°ã¯ãå¼æ°ãªããã¨ã空ãªã¹ãã®å¼æ°ããåºå¥ã§ããªãããã ã
perlã®ã½ã¼ã¹ã³ã¼ããã¿ãã¨ããã parseã®ã¨ããã§ãå¼æ°ãªããã¨ã空ãªã¹ãã®å¼æ°ããåºå¥ãã¦ããã¨ããã£ãã
https://github.com/Perl/perl5/blob/v5.24.0/op.c#L6048
https://github.com/Perl/perl5/blob/v5.24.0/perly.y#L346-L354
追è¨
import ãå¼ã°ãªãããã®è¨æ³ã¨ã㦠use Foo () ãç¨æããããã¨ããçµç·¯ããã£ãæ°ããã¾ãã> https://t.co/rloCEVR1fm
— hkoba (@hkoba) November 6, 2016
@shoichikaji perlfunc ã«æ¸ãå ãã£ãã®ããã®ãããã®æã½ãã§ã. 1995. (This is patch.2b1g to perl5.002beta1.)ï¼ https://t.co/GJ0JtlerYZ
— hkoba (@hkoba) November 6, 2016