I studied Perl a bit and found that it is very different from other OOP languages that I know. I tried to translate C # code that looks like this:
class Car{}, class CarList{}, class Program{}
and method (pseudo code):
if (var.GetType() == Car)
{
}
else if (var.GetType == CarList)
{
}
how can i write this in perl without gettype function or is there one?
source
share