Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
    Use of uninitialized value in string eq
    
  3. or download this
    map {if($_ =~ /^(#)?(10\.10\.1\.2.*)/){$_ = $1 eq '#' ? $2 : "#$2";}} 
    +@Output;
    
  4. or download this
    print Out @Output;
    
  5. or download this
    use strict;
    use warnings;
    ...
       atomic_update( $hostfile, \@Output );
    }
    print "There were $nchanges changes made to file '$hostfile'\n";
    
  6. or download this
       s/^#(?=10\.10\.1\.2)//
       s/^(?=10\.10\.1\.2)/#/