Is there anyway to execute a perl file from a javascript file.
 
What I am doing is this.
I am making a originate command from a perl file passing a javascript file to execute when the call is answered.
Like this:
$fs->sendmsg({'command' => 'bgapi originate {ignore_early_media}sofia/gateway/asterisk/9192117290 &javascript(test.js)'});
 
What I want is from this javascript file execute a .pl file. 
 
Thanks
Leonardo Alves