But if you're more comfortable in C than in Perl, C will be less hassle for you in the short term. If you have some time to learn, Use Perl!.
I have to second that. I like perl, I really do, but when I was in school I tried to use a language I did not know and it cost me. This comment is not about a language war but rather it is about using your time efficiently and meeting as many of your goals as you can.
It was an intro compiler course. The first assignment was a simple translator and we could use one of five languages (and lex libraries). I was most comfortable with C so I wrote about 1500 lines of code over a two day weekend. gdb was really handy for tracking through pointers in trees. I got a good grade on it.
Now the recommended language was python. I had never used python but the instructor recommeneded it and so did other students who knew it. I saw some of their programs were shorter than mine and I had spent a lot of time just writing linked list and tree code. So I tried python for the second program in the course.
The short version is I was busy with a paying job and school and the local undergrad club and now I was trying to write a compiler (which was new to me anyway) in a language I had never even written "hello world" in.
My assignment was late by a few days and was never completed. Up to that point I had used C, C++, Java, I don't know how many Assembly languages, LISP, Prolog and I'm sure a couple more but for the life of that compiler assignment I couldn't get python figured out in the time I had. (I still got a B-something in the course.)
My advice is don't take on too much. This course sounds like a Real Time Systems course. It's not on Perl or languages so focus your effort on the course content.
Afterwards most people are not going to notice that you learned a new language in a course and you can always learn it on your own time. Employers who ask to see your grades will likely notice if you did not pass a course and maybe you would prefer they see a higher grade. That said if you are asking this question you are likely bright and enjoy learning and will probably do just fine but my advice still remains as: don't complicate your assignments (or work projects) any more than you have to.