in reply to use parent qw( Tie::StdArray)
dog don't hunt
I assume you mean "it gave me an error that it couldn't locate Tie/StdArray.pm in @INC". Sharing error messages helps us to help you better than any variant of the phrase "it doesn't work".
parent shows an example of how to have a parent of Tie::StdHash. Did you try to use that same pattern with Tie::StdArray? Because using -norequire option worked for me.
C:\usr\local\share > perl -MTie::Array -le "use parent qw(Tie::StdArray)" Can't locate Tie/StdArray.pm in @INC (you may need to install the Tie: +:StdArray module) (@INC contains: ...) BEGIN failed--compilation aborted at -e line 1. C:\usr\local\share > perl -MTie::Array -le "use parent -norequire => 'Tie::StdArray'"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use parent qw( Tie::StdArray)
by rlauer (Novice) on Oct 28, 2022 at 18:56 UTC |
In Section
Seekers of Perl Wisdom