in reply to NET::POP3, setting domain

When you give us very little help, you will get very little in return.

What does the Net::POP3 documentation say about it? What about the documentation do you not understand? What have you tried so far? (Your source code is worth more than a thousand word description of what you have tried so far.)