kprasanna_79 has asked for the wisdom of the Perl Monks concerning the following question:
Actually i am calling this Deliv Package from the main package as belowThe error is Cant find the method Deliv
Also i have written this Deliv Package in the bottom of main package code.push @delivs, new Deliv('deliverable ' . $_,$ini);
I believe this is working fine in another code, but here it not. Any idea???package Deliv; use vars qw($AUTOLOAD); sub new { my $class = shift; my $self = bless {}, $class; my ($dev_sec,$cfg) = @_; $self->{source} = $cfg->val($dev_sec,'source'); $self->{related_job} = $cfg->val($dev_sec,'related_job'); return $self; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem in private package
by GrandFather (Saint) on Oct 28, 2008 at 23:54 UTC | |
|
Re: Problem in private package
by chromatic (Archbishop) on Oct 29, 2008 at 05:44 UTC | |
by kprasanna_79 (Hermit) on Oct 29, 2008 at 16:16 UTC | |
by chromatic (Archbishop) on Oct 29, 2008 at 17:48 UTC | |
|
Re: Problem in private package
by ikegami (Patriarch) on Oct 29, 2008 at 01:32 UTC |