View Single Post
Old 05-05-2007, 03:20 PM   #7 (permalink)
match000
Psycho
 
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..
match000 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43