/[webpac]/trunk/parse_format.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/parse_format.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 380 by dpavlin, Fri Apr 2 23:30:44 2004 UTC revision 381 by dpavlin, Wed Jul 7 17:34:42 2004 UTC
# Line 163  sub parse_iso_format { Line 163  sub parse_iso_format {
163                  sub fld2str {                  sub fld2str {
164                          my ($func,$row,$f,$sf,$i) = @_;                          my ($func,$row,$f,$sf,$i) = @_;
165  #print STDERR "## in fld2str\n";  #print STDERR "## in fld2str\n";
166                          my $tmp = $codepage->convert(&$func($row,$f,$sf,$i)) || '';                          my $tmp = $codepage->convert(&$func($row,$f,$sf,$i)) ||  $codepage->convert(&$func($row,$f,$sf,0)) || '';
167                          return "'$tmp'";                          return "'$tmp'";
168                  }                  }
169    
170                  $eval =~ s/v(\d+)\^(\w*)/fld2str($func,$row,$1,$2,$i)/eg;                  $eval =~ s/v(\d+)\^(\w*)/fld2str($func,$row,$1,$2,$i)/eg;
171  #print STDERR "## eval: $eval\n";  #print STDERR "## eval: $eval\n";
172                  if (eval "$eval") {                  if (eval "$eval") {
173                            die "eval error: eval{$eval}: $@" if ($@);
174                          return ($swish,$display);                          return ($swish,$display);
175                  } else {                  } else {
176                            die "eval error: eval{$eval}: $@" if ($@);
177                          return (undef,undef);                          return (undef,undef);
178                  }                  }
179          }          }

Legend:
Removed from v.380  
changed lines
  Added in v.381

  ViewVC Help
Powered by ViewVC 1.1.26