in reply to Self study Perl
G'day Sarat1729,
"... want to understand what happens behind the scenes ..."
You'll find about two dozen links, to information relating to this, listed in "Internals and C Language Interface".
— Ken