dunno, could be logical error or most likely could be the way I do the character (dash '-') comparison..
$a[1] == '\-' might be not correct. i am assuming - is a special character so you have to use '\-' but maybe you just do '-' if its not a special character.
also, i don't know if in perl you can do == '\-', might have to do a regExp like your partner did.. something like:
$a[1] =~ /\s*\-\s*/ (not sure if this is correct, but you get the picture)
hope this helps
for tutorials, google: perl tutorial, the first hit is very outdated but I read it anyways (in Jan) to learn Perl.. also google: stanford perl tutorial, i think that gives a good one..
|