On Thu, Sep 09, 2004 at 01:31:46PM -0400, Jackie Shieh ([EMAIL PROTECTED]) wrote:
> Hi,
>
> I would like to get data out of topical subjects (650s),
> but only the ones that with a 2nd indicator of 0 or 2.
> With this script,
>
> my @f650 = $record->field('650');
>
> ##
> foreach my $f650 (@f650) {
> if ( $f650 and $650->indicator(2) = [02] ) {
> print OUT "650: ", $f650->as_string(), "\n";
> }
> }
>
>
> it returns an error: "Can't call method "indicator" on an undefined
> value."
Your second $f650 is actually $650.
Do you have "use warnings" and "use strict" on?
xoa
--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance