in reply to Re: Problem with calling method new
in thread Problem with calling method new

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 $_
  • Comment on Re: Re: Problem with calling method new

Replies are listed 'Best First'.
Re: Re: Re: Problem with calling method new
by jlongino (Parson) on Sep 21, 2001 at 02:31 UTC
    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]}