Help for this page

Select Code to Download


  1. or download this
    my $string = 'abc!hu(';
    print "\Q$string\E\n";    # prints abc\!hu\(
    print quotemeta $string;  # prints abc\!hu\(
    
  2. or download this
    s/\Q$string\E/$replacement/;
    
    ...
    
    $qstring = quotemeta $string;
    s/$qstring/$replacement/;
    
  3. or download this
    perldoc perlre
    perldoc perlop (the m// part)
    
  4. or download this
    -- 
    Joost       downtime n. The period during which a system
                is error-free and immune from user input.