Re: understanding code

2004-02-01 Thread MAC OS X
On 31 Jan 2004, at 21:40, John W. Krahn wrote: Jan Eden wrote: Nilay Puri, Noida wrote: Can any one walk me thru this piece of code :: while() { chomp ; $isbn =(split(/^_/, $_))[0] ; --- not able to understand what is being accessed (..)[0] That's the first element of the array returne

Re: understanding code

2004-01-31 Thread John W. Krahn
Jan Eden wrote: > > Nilay Puri, Noida wrote: > > > >Can any one walk me thru this piece of code :: > > > >while() > >{ > > chomp ; > > $isbn =(split(/^_/, $_))[0] ; --- not able to understand what is > >being accessed (..)[0] > > That's the first element of the array returned by split

Re: understanding code

2004-01-31 Thread Rob Dixon
Nilay Puri wrote: > > Can any one walk me thru this piece of code :: > > while() > { > chomp ; > $isbn =(split(/^_/, $_))[0] ; --- not able to understand what is > being accessed (..)[0] > unless ($KEYS{$isbn} ) isbn is a scalar variable, how keys > wok on it ? > { > print "$_\n" ; > $K

RE: understanding code

2004-01-31 Thread mcdavis941
"Nilay Puri, Noida" <[EMAIL PROTECTED]> wrote: >Can any one walk me thru this piece of code :: > >while() >{ >chomp ; >$isbn =(split(/^_/, $_))[0] ; --- not able to understand what is >being accessed (..)[0] >unless ($KEYS{$isbn} ) isbn is a scalar variable, how keys >wok

Re: understanding code

2004-01-31 Thread Jan Eden
Hi, Nilay Puri, Noida wrote: >Hi all, > >Can any one walk me thru this piece of code :: > >while() >{ > chomp ; > $isbn =(split(/^_/, $_))[0] ; --- not able to understand what is >being accessed (..)[0] That's the first element of the array returned by split (you can access array elem