RE: [Perl-unix-users] need help with matrix's

2004-02-05 Thread Thomas, Mark - BLS CTR
also write it @{$line} if it's easier for you to understand. - Mark. P.S. The plural of matrix is matrices, not "matrix's" > -Original Message- > From: Bruce Hudson [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 05, 2004 2:04 PM > To: [EMAIL PROTECTED] &

Re: [Perl-unix-users] need help with matrix's

2004-02-05 Thread $Bill Luebkert
Markham, Richard wrote: > this explained just about everything and was 10 times less confusing than my > own broken code. > where I really get confused in Perl is different situations will return > ARRAY reference and > others will return the element. > > as an example (printf is obviously better

RE: [Perl-unix-users] need help with matrix's

2004-02-05 Thread Markham, Richard
: Thursday, February 05, 2004 2:04 PM To: [EMAIL PROTECTED] Subject: Re: [Perl-unix-users] need help with matrix's You do not really explain what you need help with. Let me try a quick rewrite of your code so it looks a bit less like C and maybe you can ask specific questions. This is u

[Perl-unix-users] need help with matrix's

2004-02-05 Thread Markham, Richard
use strict; use warnings; my @newarray; my ($xnumvar,$xvar,$ynumvar,$yvar,@maxlength); my @newmatrix=(["123.45","JOHN DOE","Coal Miner"], ["12.45","MR. PEANUT","peanut"], ["4.1","Bill Clinton","unknown"]); # iterate through each element and gather maximum character length for