There is a file named \*.iso, where `*` is any string (dot, numbers, alphabets, spl characters).

\*.iso is located at /dm2/www/html/isos/preFCS5.3/ 

I want to get this filename into $filename. I know it's very simple. How can I do this in Perl?
['https://Stackoverflow.com/questions/6856491', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/713200/']
Destructor of the Base class will be automatically called by the compiler, when your objet life time ends. you do not need to call it explicitly.

```
TMyObject::TMyObject() : TObject()

```

Does not inherit the constructor.  

It is called as **[Member initializer list](https://stackoverflow.com/questions/6724626/c-constructor/6724639#6724639)** and it initializes the Base class object with a particular value.

When you create the object.

```
TMyObject obj;

```

The constructors will be called in order: 

```
constructor of TObject
constructor of TMyObject 

```

When the object life time ends the destructors will be called in the order:

```
destructor of TMyObject 
destructr of TObject

```

The compiler will do so for you, do not need to call it explicitly.
If you destroy a `TMyObject` through a reference of type `TMyObject` you don't have to do anything. In case you have a pointer/reference of type `TObject` to a `TMyObject` things will go wrong. *Only* the `TObject` destructor will be called, not the `TMyObject` one:

```
TObject* p = new TMyObject;
delete p; // Only the TObject::~TObject is called, not TMyObject::~TMyObject.

```

To have the decision on what destructor to call deferred to runtime, you need to specify the destructor as `virtual` in `TObject`. Whenever you have a class that is intended to be derived from, the destructor should be virtual. Otherwise there is always a risk for resource leaks when the derived class destructor isn't called properly.