Help for this page

Select Code to Download


  1. or download this
    use File::Slurp 'edit_file';
     
    edit_file { s!<default>.+?</default>!<default>enabled</default>!sg } '
    +inputfile';
    
  2. or download this
    this is line 1
    this is line 2
    <default>enabled</default>
    this is line 3
    <default>enabled</default>
    this is last line