This:
if ($nick eq ("xxx" || "yyy"))
doesn't make sense. You're checking $nick for string-equality with the logical-ORed value of "xxx" and "yyy" which is just going to be "xxx". What you probably meant was
if ( $nick eq "xxx" or $nick eq "yyy" )
If you have a bigger list of nicks you can use a hash, which is a lot easier than constructing a gigantic conditional.
my %ops = ( xxx => 1, yyy => 1, zzz => 1 ); if ( $ops{$nick} == 1 ) { ... }

In reply to Re^3: Net::IRC Auto-OP by friedo
in thread Net::IRC Auto-OP by Cheater

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":