in reply to Is 'for' the wrong choice here?
Of course, I would make sure that you prune your @admin_users list, making it all neat and tidy before feeding it to this routine. For example, you will want to strip off extraneous characters, such as dangling spaces and newlines.if (grep { lc eq lc($author) } @admin_users) { print "$blah"; } else { print "$uber_blah"; }
@admin_users = map { s/\s+//; $_ } @admin_users;
|
|---|