Help for this page

Select Code to Download


  1. or download this
    sub update {
      my ( $url, $dir ) = @_;
      my @possible_suffixes = qw( .gz .bz2 );
      my $basename = extract_basename( $url, @possible_suffixes );
      my $local_file = "$dir/$basename";
    
  2. or download this
      return if -e $local_file and not is_newer( $url, $local_file );
    
  3. or download this
      my $temp_file = download( $url, TEMP_DIR ) or die "download of $url 
    +failed";
    
  4. or download this
      if ( -e $local_file ) {
        my $new_name = rename_file( $local_file, suffix( time ) );
        compress( $new_name );
      }
    
  5. or download this
      move_file( $temp_file, $local_file );
      maybe_uncompress( $local_file );
    
  6. or download this
    
      return 1;
    }