in reply to PHP to PERL ?

It runs the code as if it were inside the file calling it, yes.