:
> Hello
>
> Where can I see (web pages) examples of manipulating arrays, calculos
> with elements of arrays or something like that?, I am writing a program
> where I need to read, process, print to file, save arrays (vectors and
> matriz) but I am beginner using Perl and it&
Hello
Where can I see (web pages) examples of manipulating arrays, calculos
with elements of arrays or something like that?, I am writing a program
where I need to read, process, print to file, save arrays (vectors and
matriz) but I am beginner using Perl and it's difficult for me to
Thanks to John W Krahn and Shishir for your replys, need to learn about
push
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Steven Massey wrote:
>
> Hi any help appreciated...
Hello,
> I am reading a file consisting of lines with upto 2 sets if data seperated
> by : ie
>
> 13:fred
> 12:nancy
> lional:
>
> each line is split into @a1 and @a2, here is my problem - if line does not
> have @a2 as in example line 3
for @a1;
print $_, "\n" for @a2;
__END__
##
it prints
13
12
12
fred
nancy
lional
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 5:25
Hi any help appreciated...
I am reading a file consisting of lines with upto 2 sets if data seperated
by : ie
13:fred
12:nancy
lional:
each line is split into @a1 and @a2, here is my problem - if line does not
have @a2 as in example line 3 above, I want it to take the value from line
2
ie - 1