Re: two questions on my perl exam.

2008-10-21 Thread birdinforest
Thanks for your suggestions and all of them make sense. However, since I am a totally beginner never learned programing, it should take me sometime to understand them clearly. I will also try to get answer from my lecturer, then post here that what I have learned from both questions. Programing

Re: two questions on my perl exam.

2008-10-21 Thread John W. Krahn
birdinforest wrote: I am a student and enrolled Unix programing this semester. There are two questions relating to perl I can not work out in the last exam ( Actually I have write out my code, however the exam system marked it as "wrong"). Please help me to point out the fault. Thanks. QUESTION

Re: two questions on my perl exam.

2008-10-21 Thread Chas. Owens
On Tue, Oct 21, 2008 at 10:43, Rob Dixon <[EMAIL PROTECTED]> wrote: snip snip > use strict; > use warnings; > > print join('', "@ARGV" =~ /[0-9]/g), "\n"; snip The perl interpreter in my brain throws a syntax error on the line 4 character 15. Since you have put your code out there here is mine

Re: two questions on my perl exam.

2008-10-21 Thread Rob Dixon
birdinforest wrote: > > I am a student and enrolled Unix programing this semester. > There are two questions relating to perl I can not work out in the > last exam ( Actually I have write out my code, however the exam system > marked it as "wrong"). Please help me to point out the fault. Thanks. >

Re: two questions on my perl exam.

2008-10-21 Thread Chas. Owens
On Tue, Oct 21, 2008 at 08:49, birdinforest <[EMAIL PROTECTED]> wrote: > I am a student and enrolled Unix programing this semester. > There are two questions relating to perl I can not work out in the > last exam ( Actually I have write out my code, however the exam system > marked it as "wrong").

two questions on my perl exam.

2008-10-21 Thread birdinforest
I am a student and enrolled Unix programing this semester. There are two questions relating to perl I can not work out in the last exam ( Actually I have write out my code, however the exam system marked it as "wrong"). Please help me to point out the fault. Thanks. QUESTION 1 Write a perl script