in reply to Re^2: hard-to-understand taint error
in thread hard-to-understand taint error

It looks like your original requirement was files starting with '__'.

Similar to what ww is saying, you can simplify your capture to /^(__.*)$/; then you won't have to worry about upper-case matching.

Replies are listed 'Best First'.
Re^4: hard-to-understand taint error
by ikegami (Patriarch) on Feb 18, 2009 at 14:39 UTC
    But since we already grepped for /^__/, that can be simplified /^(.*)$/. Looks scary, but it's fine here. Either we trust DB_DIREC or we don't (in which case, it could be used to delete /etc/__important even with the "safer" untainting).