Hi, Nilay Puri, Noida wrote:
>Hi all, > >Can any one walk me thru this piece of code :: > >while(<STDIN>) >{ > 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 elements like this: @array = (1,2,3); $number = $array[0] print $number; This prints "1". > unless ($KEYS{$isbn} ) ---- isbn is a scalar variable, how keys >wok on it ? Obviously, there is a hash named %KEYS, where each key is an isbn number. HTH, Jan -- Either this man is dead or my watch has stopped. - Groucho Marx -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>