in reply to regeex question

Hello,

Seems to be a very basic question, am I missing something?

if ( $host =~ /thes530-xxxx.otenet.gr|millennium-xxxx.ccf.auth.gr/ ) { # blahblahblah... }
Update: Ah I see what you meant. Roger's solution is prob what you want.