Looks like a typo Jackie.

I think you meant 

 $f650->indicator(2) 

instead of 

 $650->indicator(2).

-bill

-----Original Message-----
From: Jackie Shieh [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 09, 2004 1:32 PM
To: [EMAIL PROTECTED]
Subject: getting subjects out 

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."

What am I doing wrong?!  Thanks for your help!!

--Jackie

|Jackie Shieh
|Special Projects & Collections Team
|Harlan Hatcher Graduate Library
|University of Michigan
|920 North University
|Ann Arbor, MI  48109-1205
|Phone: 734.936.2401   FAX: 734.615.9788
|E-mail: [EMAIL PROTECTED]



Reply via email to