in reply to Perl execution

Or is there any other way , execution of perl script happens ?

If you want to change your perl script at runtime you have several options including eval, the e modifier on regular expressions and running generated script in a sub-process.