Tagged Questions

I have been learning perl for the past few weeks and i have made decent progress in learning the language. After reading various forums i came to know that its better to write libraries than writing ...

There seems to be a dozen questions related to missing methods and OO Perl on here, but from what I can see, a lot of them are related to home-made Perl modules. My question deals with an apparently ...

I am trying to make a library of functions for my oscilloscope, but I can't seem to get other module files to play nice.
What I have is here, except the Oscope.pm file. If it's needed I can upload it ...

I am used to using $self for OO Perl even when I am just writing self-contained scripts without naming my package at all. For example, my script.pl would start like this:
use strict;
use warnings;
my ...

I have a Perl class/module that I created to display Bible verses. In it there is a hash that stores several verses, with the key being the book/chapter/verse and the value being the text. This hash ...

I am using Moo as my OO engine, and I want to change the behaviour of some instances at runtime. I need to add new methods and change the existing ones.
Is that possible with Moo? If not, how can I ...

I'm refactoring a test suite built on Test::Class, and would like to take advantage of such Moose niceties as Roles, both in the base test class, and in some of the test classes
I have tried:
Using ...

Is there a standard CPAN way of finding out all the superclasses of a Perl class (or better yet entire superclass tree, up to UNIVERSAL)?
Or is the best practice to simply examine @{"${$class}::ISA"} ...

I have an object that stores arrays as instance variables. Since Perl does not seem to support this, I have to store references to the arrays instead. However, I cannot figure out how to mutate these ...

I have been thrust into taking over some code but I may be out of my element in figuring this one out. If someone could give me a hint I'd appreciate it. I'm enjoying learning this code but every now ...

I have a sub class that calls a method from a super class. and the method in the super class use a method that is defined in the super class as asbstract(not really abstract) but implemented in the ...