kocaweb wrote:
I'll i wanna do is pass this course
That's very sad. Then didn't you choose to be in the programming class? In which kind of school is Perl mandatory? I am impressed (of the school). I have met so many people who are doing some kind of course or class to make them programmers or web designers or both, and many of them even get their certificates even though the showed little talent or effort. But I am not sure if you'll become one of them. Because:
At least, kocaweb, you achieved some things: you wrote what has to be done. You have looked somewhere to find information. You even got information in the answers, hopefully you figured out the right chapter in the perl documentation and understood it. After all, you might be spending much more than ten minutes to get your homework done, but then maybe you will have learned more in the end, and this experience will help you for your next homework. Maybe it even gets you interested in the stuff you are about to learn - not only passing the exam. Now you've found Perlmonks, take some spare time and explore the site, it's a bit unconventional at first glance, but it's worth being discovered.