Help for this page

Select Code to Download


  1. or download this
    push @lines, grep { /Running|Dump|FromCB|Update/o && filterLog($_) } <
    +$fh>;
    
  2. or download this
    return unless ! exists $opts{'start-time'} || $opts{'start-time'} lt $
    +1;
    return unless ! exists $opts{'stop-time'} || $opts{'stop-time'} gt $1;
    
  3. or download this
    return if exists $opts{'start-time'} and $opts{'start-time'} ge $1;
    return if exists $opts{'stop-time'}  and $opts{'stop-time'}  le $1;
    
  4. or download this
    sub mergeLogs() {
    sub filterLog() {
    
  5. or download this
    sub filterLog() {
        s/ {2,}/ /g;
    ...
    
        return pack 'da*', ( $2*60 + $3 )*60 + "$4.$5" ), $_;
    }
    
  6. or download this
    grep { /Running|Dump|FromCB|Update/o && ( $_ = filterLog($_) ) } <$fh>
    +;
    
  7. or download this
        @lines = map{ 
            substr $_, 8 
        } sort @lines;
    
  8. or download this
        s/ {2,}/ /g;
        s/^((?:\S+ ){3}).+?\[?I\]?:/$1/;
        s/ ?: / /g;
        s/ ACK (\w) / $1 ACK /;