in reply to Perl script to mount iso file

#I need sudo and I don't know if it's possible to do that from a script.

Yes, you can. sudo has a NOPASSWD option. Check the sudoers manual here.