in reply to Re: Re: Wrong number of arguments in methods call
in thread Wrong number of arguments in methods call

You must be doing something odd (as well as the incorrect () you added) so post your code in its entirity or copy this (works fine)

my $foo = new Foo; $foo->connect('ip', 8080 ); package Foo; sub new { return bless {}, shift } sub connect { my $self = shift; my ($ip, $port) = @_; print "$self $ip $port"; }

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Replies are listed 'Best First'.
Re: Re: Re: Re: Wrong number of arguments in methods call
by robot_tourist (Hermit) on May 09, 2002 at 13:44 UTC

    Thanks, I have discovered the problem is in the way I am using Win32::API, sorry. We need people like you to scan for cloaked Romulans, not have to worry about people like me.

    I have a wiry brain/each eye a camera. Robot Tourist, by Ten Benson