re:   $f650 and $650->indicator(2) = [02]

In this expression,   '[02]' is bad syntax.  Either you need to
put quotes around [02] or else drop the square brackets.



--
========================================
Mark Huppert
Web Development / ILMS Coordinator
Library (Scholarly Information Services)
Division of Information
R.G. Menzies Building (#2)
The Australian National University

T: +61 02 6125 2752 
F: +61 02 6125 3215
W: anulib.anu.edu.au/about/

CRICOS Provider #00120C



> -----Original Message-----
> From: Andy Lester [mailto:[EMAIL PROTECTED]
> Sent: Friday, 10 September 2004 4:43 AM
> To: Jackie Shieh
> Cc: [EMAIL PROTECTED]
> Subject: Re: getting subjects out
> 
> 
> 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
> 

Reply via email to