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
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
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
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.
>
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").
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