in reply to RegExpression fails to work

I wish i had more time to go over this with you, but right off the bat:

my @subjects = []; # reference to empty array
is wrong. That is an array that holds an empty array reference. Try this instead:
my @subjects;
There is no need to assign anything, just declare the variable. Further more, this loop:
for (my $i = 0 ; $i<scalar @resultLine; $i++) {
can be written in a more Perlish fashion like so:
for my $i (0 .. $#resultLine) {
This is Perl, not C. :) Finally, do yourself a big favor. Slow down and read some material. I recommend davorg's excellent book, Data Munging With Perl.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: RegExpression fails to work
by MonkPaul (Friar) on Jun 14, 2005 at 15:22 UTC
    Hey, thanks.
    I had a problem with the first element of the array causing some problems with printing out the hashref&&& stuff on the screen. Did not realise that it was the @array = []; causing the problem.

    MonkPaul.