, the Perl API lib will only let you read the configuration nodes, you'll still have to access the command line shell environment and run set commands from your Perl script.
For EdgeMax examples, check out one of my github projects and look at the Perl scripts setup or remove.