Yes, I know that I did not extend anything. But the my purpose is just to verify some characteristics of polymorphism. I think that this is quite strange that the methode tell() of SubPoint in invoked.
Hi all,
I wrote a class Point and a class SubPoint which extends the class Point (see the code below). Then I declared a variable sp of type SubPoint and I called sp.tell(). Could anyone tell me why the method speak() of the class SubPoint is invoked although I already call super.tell() within...
Hello everybody,
I'm looking for an approximate matching approach with Perl, and I found the String::Approx package (http://search.cpan.org/~jhi/String-Approx-3.26/Approx.pm).
It's claimed to use Levenshtein edit distance (LeD) as its measure but I don't know how LeD was used in this...
Hi,
I used grep command as trav69 suggested (@out = grep /$line/i, @array;), but I got this error
Nested quantifiers in regex; marked by <-- HERE in m/'The Working Papers for the ANSI-X3J16/ISO-SC22-WG21 C++ <-- HERE Standards Committee'/
Maybe in the $line contains some special characters...
Hi all,
Does anyone know a bout a funtion which is similar to grep in Unix? I want to count the number of lines which match a pattern in a file and I intend to use "grep" command of Unix system:
$n=`grep -c -i "$line" filename`;
However if $line contains double quotation marks (i.e. " ) or...
Hi all,
I have a question about XSLT and I hope you can help me.
I have a XML file like that
<book>
<title>
Title here
</title>
<author>
Author name here
</author>
<content>
content here
</content>
</book>
<book>
<author>
Author name here
</author>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.