Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DBIx :: Classがuse base代わりに使用する理由はありuse parentますか?
use base
use parent
たとえばこれを参照してください。
訂正してください私は間違っていますが、use base非推奨ではありませんか?
ありがとう、
古いPerlとの互換性のため。use parent5.10で追加されましたが、Perl5.8をDBIx::Class引き続きサポートします。
DBIx::Class
技術的には、perldocsuse baseは、正式に非推奨ではなく「非推奨」であると述べています。これは、すぐになくなることはないことを意味します。ただし、コードがPerl 5.10をターゲットにしていることがわかっている場合は、それuse parentが優れています。