Pull E-mail address from file, send e-mail

Hello,

I am new to perl and need to create a script that will read a file and pull a name from the file and send e-mail.

How can I use the following awk statement in a perl script?

grep UNIXadmins /root/mail.conf | awk '{ print $2}'

and use the output to send a e-mail.

Any help would be great

Thanks

use the system command.

system("command")