in reply to Problem with calling method new

I assume you typo'd package Voice::Calender in the first snippet, but for others trying to cut/paste, it might cause a problem.

Yes, I know this is probably not the cause of the error you are getting. But it might help if others could see what line 8 of your code is. I assume it is the my $voice = Voice::Calendar->new(); statement.

@a=split??,'just lose the ego and get involved!';
for(split??,'afqtw{|~'){print $a[ord($_)-97]}

Replies are listed 'Best First'.
Re: Re: Problem with calling method new
by Sinister (Friar) on Sep 21, 2001 at 02:17 UTC
    The typo's are here only - sorry typed to fast...

    Line 8 is indeed not what it seems, huh? I extracted the code out of my original script and it is indeed the invocing line...

    I tried numerous things and it is bugging me out. Voice::Calendar is in @INC... - I am clueless!

    Sinister greetings.
    "With tying hashes you can do everything God and Larry have forbidden" -- Johan Vromans - YAPC::Europe 2001
    perldoc -q $_
      I don't know much about OOP, but aren't you missing the return statement in your sub new()?

      Update: chromatic explained to me that the constructor returns the value of the last expression. (the bless. Like I said, I don't know much, OOPS! :)

      @a=split??,'just lose the ego and get involved!';
      for(split??,'afqtw{|~'){print $a[ord($_)-97]}