Help for this page

Select Code to Download


  1. or download this
    <html><body>
    <p>before</p>
    <include file ="hh.html">
    <p>after</p>
    </body></html>
    
  2. or download this
    #!/usr/bin/perl
    
    ...
        use File::Slurp qw/read_file/;
        return read_file($_[0]);
    }
    
  3. or download this
    $html =~ s/<include file="([^"]+)">/&add_template($1)/gexi
    
  4. or download this
    if(!-f $_[0]){
     return "Could not include template '$_[0]' because: NO  FILE"
    ...
     return "Could not include template '$_[0]' because: NO ACCESS TO FILE
    +";
    }