Jan Eden wrote: > > Nilay Puri, Noida wrote: > > > >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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Functions/subroutines in perl return a LIST, not an array.
perldoc -q "What is the difference between a list and an array" John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>