Help for this page

Select Code to Download


  1. or download this
    while (my $line = <FILE>) {
            $line =~ s/$curUrl/$tarUrl/g;
        }
    
  2. or download this
    open my $INFILE, '<', 'some_file'
        or die "Couldn't open $fname: $!";
    
  3. or download this
    {
        local $^I = ".backup";
    ...
            print;
        }
    }
    
  4. or download this
    ...
    use English '-no_match_vars';
    ...
            print;
        }
    }
    
  5. or download this
    $^I = undef;  #default value, Turn off inplace editing mode.
    
    $^I = "some_string";  #Turn on inplace editing mode, use "some_string"
                          #as the extension for the backup files.
    
    $^I = "";           #Turn on inplace editing mode, delete backup files
    +.