in reply to Problem in private package

push @delivs, new Deliv('deliverable ' . $_,$ini);

The indirect object syntax tends to fail horribly in curious ways, especially when you have everything in one file. I don't believe this will solve your entire problem, but you can avoid that ambiguity if your method calls look unambiguously like method calls:

push @delivs, Deliv->new( 'deliverable ' . $_, $ini );

Replies are listed 'Best First'.
Re^2: Problem in private package
by kprasanna_79 (Hermit) on Oct 29, 2008 at 16:16 UTC
    chromatic
    It really worked..any idea why this worked and not the other
    -Prasanna.K

      Without seeing the actual error message, I can only guess that you already have a new function declared in the current package earlier in the file than this code, and Perl's calling that new instead of Deliv's new function.