Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7903877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:51:31+00:00 2026-06-03T09:51:31+00:00

For some reason I’m not able to access the child methods on the boundary

  • 0

For some reason I’m not able to access the child methods on the boundary object. I would appreciate as much detail with an answer as possible as I’m still a bit confused on inheritance with perl, especially the bless portion. Also any constructive criticism would be great about overall design.

Generic.pm (Base Class)

package AccessList::Generic;
use strict;
use warnings;

sub new {
    my $class = shift;
    my $self = {
        rules => [],
        @_
    };
    bless $self, $class;
    return $self;
}

sub get_line_count {
    my $self = shift;
    return scalar @{$self->{rules}};
}

1;

Extended.pm

package AccessList::Extended;
use strict;
use warnings;
use AccessList::Generic;

use base qw(AccessList::Generic);

sub new {
    my ($class, @args) = @_;
    my $self = $class->SUPER::new(@args);
    return $self;
}


1;

Boundary.pm

package AccessList::Extended::Boundary;
use strict;
use warnings;
use AccessList::Extended;

use base qw(AccessList::Extended);

sub new {
    my ($class, @args) = @_;
    my $self = $class->SUPER::new(@args);
    return $self;
}

sub get_acl_information {
    my ($self) = @_;
    return;
}

1;

Failing Test

can_ok('AccessList::Extended::Boundary', 'get_acl_information');

Error Message

#   Failed test 'AccessList::Extended::Boundary->can('get_acl_information')'
#   at t/b1.t line 42.
#     AccessList::Extended::Boundary->can('get_acl_information') failed
# Looks like you failed 1 test of 2.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:51:37+00:00Added an answer on June 3, 2026 at 9:51 am

    I don’t see any problems in what you posted. The problem is surely in what you didn’t post. Did you forget to load AccessList::Extended::Boundary?

    $ find -type f
    ./AccessList/Extended/Boundary.pm
    ./AccessList/Extended.pm
    ./AccessList/Generic.pm
    
    $ perl -E'
       use Test::More tests => 1;
       use AccessList::Extended::Boundary;
       can_ok("AccessList::Extended::Boundary", "get_acl_information");
    '
    1..1
    ok 1 - AccessList::Extended::Boundary->can('get_acl_information')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For some reason I am not able to find this information anywhere. How many
For some reason I'm not able to Autowire the ViewResolver : @Component public class
For some reason, this works in all major browsers, but not IE (surprise, surprise).
For some reason I never see this done. Is there a reason why not?
For some reason @store object with three attributes won't assign the third value(generated token
For some reason, I can not get this dialog to show up on the
For some reason the code is not responding when i got the code if
For some reason the Joomla docs are not very friendly to people that don't
For some reason this is not working. Instead it thinks it should check the
For some reason, Firefox is throwing function not defined errors at this piece of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.