in reply to Re: multiple commands before unless ?
in thread multiple commands before unless ?
But that said, I would solve your original problem using the options in perlrun. For instance:
(Switch quotes to " for Windows.)perl -pi.bak -e 's/^update_info=(?:\w+)/update_info=auto/' your_file
|
|---|