Re: array within array

2007-10-30 Thread Ron Bergin
On Oct 29, 11:09 am, [EMAIL PROTECTED] (John W . Krahn) wrote: > On Monday 29 October 2007 06:42, Mike Tran wrote: > > > Hey all, > > Hello, > > > I'm new with Perl and need help with this simple script. I'm still > > playing around with the script below to get a feel for Perl. My > > script below

Re: array within array

2007-10-29 Thread Ron Bergin
On Oct 29, 6:42 am, [EMAIL PROTECTED] (Mike Tran) wrote: > Hey all, > > I'm new with Perl and need help with this simple script. I'm still > playing around with the script below to get a feel for Perl. My script > below is incomplete and I'm doing an array within an array which is > incorrect. Plea

RE: array within array

2007-10-29 Thread Mike Tran
beginners Subject: Re: array within array On Monday 29 October 2007 06:42, Mike Tran wrote: > Hey all, Hello, > I'm new with Perl and need help with this simple script. I'm still > playing around with the script below to get a feel for Perl. My > script below is incomplete and I&#

Re: array within array

2007-10-29 Thread John W . Krahn
On Monday 29 October 2007 06:42, Mike Tran wrote: > Hey all, Hello, > I'm new with Perl and need help with this simple script. I'm still > playing around with the script below to get a feel for Perl. My > script below is incomplete and I'm doing an array within an array > which is incorrect. Plea

Re: array within array

2007-10-29 Thread Dr.Ruud
Andrew Curry schreef: > be very careful with exists, it auto creates the structure > use Data::Dumper; > my %hash; > if (exists $hash{a}{b}) {} > print Dumper(\%hash) > then the next time you use exists it is there. > defined is much safer as it doesnt do this. No, the difference

Re: array within array

2007-10-29 Thread John W . Krahn
On Monday 29 October 2007 07:29, Beginner wrote: > > while () { > chomp; > my @fields = split(/|/,$_); ^^^ > $exclude_bases{$F[0]} = 0; # $f[0] contains base_no > } > close(EXCLUDE); > > open(BASE,"base.txt")|| die("Could not open file!"); > while () {

RE: array within array

2007-10-29 Thread Andrew Curry
PROTECTED] Sent: 29 October 2007 15:30 To: beginners @ perl. org Subject: Re: array within array On 29 Oct 2007 at 8:42, Mike Tran wrote: > Hey all, > > > > I'm new with Perl and need help with this simple script. I'm still > playing around with the script belo

Re: array within array

2007-10-29 Thread Beginner
On 29 Oct 2007 at 8:42, Mike Tran wrote: > Hey all, > > > > I'm new with Perl and need help with this simple script. I'm still > playing around with the script below to get a feel for Perl. My script > below is incomplete and I'm doing an array within an array which is > incorrect. Please help

array within array

2007-10-29 Thread Mike Tran
Hey all, I'm new with Perl and need help with this simple script. I'm still playing around with the script below to get a feel for Perl. My script below is incomplete and I'm doing an array within an array which is incorrect. Please help. Here's what I want to do; I have to flat files (pi