[Perl] @ISAã¯packageãå±ããï¼ç¶æ¿ããï¼ã¯ã©ã¹ãæå®ããããã«ä½¿ç¨ããã¾ãã 以ä¸ã®ä¾ã§ã¯CowãAnimalã§ãããã¨ãæãã¦ãã¾ããCow->speakã¨ããéãCow::speakã¯åå¨ããªãããããã®è¦ªã§ããAnimal::speakã辿ã£ã¦ãããa Cow goes mooo!ã¨åºåããã¾ããCow IS A(n) Animalã ããISAã¿ããã»ã»ã» @Cow::ISAã®é¨å㯠@ISA = qw(Animal)ã¨ãããã¾ãããuse strict宣è¨ããã¦ããå ´åã«ã¯ã¨ã©ã¼ã«ãªãã¾ãã@Cow::ISAã®ä»£ããã«ãour @ISA= qw(Animal) ããã㯠use base qw(Animal)ã使ç¨ã§ãã¾ãã [ä¾: O'REILLYã®Perl Objects, References & Modules ããã®æç²] #/usr/bin/perl
{{#tags}}- {{label}}
{{/tags}}