Help with the can() method

2012-09-12 Thread pangj
Hi, Today I wrote a script for validate a dns record from the specified DNS server, the subroutine is: sub validate_dns { my $host = shift; # a host, for example, www.google.com my $value = shift; # the host's DNS value, may be a CNAME or an iP address my $dns = shift; # DNS

Re: Help with the can() method

2012-09-12 Thread Paul Anderson
Did you copy and paste that code? Do you know that when calling can() you are using $ojb instead of $obj? Paul Anderson -- VE3HOP On 2012-09-12, at 9:17 AM, pangj pa...@riseup.net wrote: Hi, Today I wrote a script for validate a dns record from the specified DNS server, the

Re: Help with the can() method

2012-09-12 Thread pangj
Sorry this is just my typo. 于 12-9-12 下午10:10, Paul Anderson 写道: Did you copy and paste that code? Do you know that when calling can() you are using $ojb instead of $obj? Paul Anderson -- VE3HOP -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands,