Re: How can be the return value from a subroutine saved in global array

2004-02-01 Thread Robin Sheat
On Sun, Feb 01, 2004 at 10:50:44AM -0800, R. Joseph Newton wrote: > what things really mean than you would have with the extra typing [hint--most > editors have excellent copy-and-paste facilities for moving identifiers around] To extend this a touch, just because of the number of people I've seen

Re: How can be the return value from a subroutine saved in global array

2004-02-01 Thread R. Joseph Newton
gautam chaurasia wrote: > i tired like this, so it should get list of genes from subroutine gene and > should print all the entries of array. but it gets only a single value. could > someone please tell me where and what am i doing wrong... > > my $twig= new XML::Twig(); > $twig->parsefile( "local

Re: How can be the return value from a subroutine saved in global array

2004-02-01 Thread R. Joseph Newton
gautam chaurasia wrote: > i tired like this, so it should get list of genes from subroutine gene and > should print all the entries of array. but it gets only a single value. could > someone please tell me where and what am i doing wrong... > > if ($local_name eq $qname) { >

How can be the return value from a subroutine saved in global array

2004-02-01 Thread gautam chaurasia
i tired like this, so it should get list of genes from subroutine gene and should print all the entries of array. but it gets only a single value. could someone please tell me where and what am i doing wrong... my $twig= new XML::Twig(); $twig->parsefile( "local.xml"); my $gene_list= $twig1->root