in reply to Re: multiple commands before unless ?
in thread multiple commands before unless ?

Saying "No modules" in this crowd is like waving a red flag at a bull.

But that said, I would solve your original problem using the options in perlrun. For instance:

perl -pi.bak -e 's/^update_info=(?:\w+)/update_info=auto/' your_file
(Switch quotes to " for Windows.)