Changeset 2367

Show
Ignore:
Timestamp:
10/04/07 16:26:12
Author:
miyagawa
Message:

fixed a bug in loop filters

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Web-Scraper/trunk/lib/Web/Scraper.pm

    r2366 r2367  
    187187        return $values; 
    188188    } elsif (ref($val) eq 'ARRAY') { 
    189         my $how = shift @$val
     189        my $how   = $val->[0]
    190190        my $value = __get_value($node, $how, $uri); 
    191         for my $filter (@$val) { 
     191        for my $filter (@$val[1..$#$val]) { 
    192192            $value = run_filter($value, $filter); 
    193193        }