Hi. I'm confused.

I don't have a copy of the Llama, and don't understand what the -o option is
supposed to do. I also don't know what a 'conditional hook test' is.

I may be being ignorant, but all I can point out is this:

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can someone tell me what is going wrong with my conditional hook tests as
marked below?
>
> #!/usr/bin/perl -w
> use warnings;
> #this program's specification is on page 167
> #in the Llama book under exercise 1
> my ($source, $go, $dest, $expression, $over);
> print"\$over = 1" if($ARGV[0] eq "-o");

OK, but I wouldn't expect a command switch to appear in @ARGV unless you're
passing it as:

    script "-o"

Also, you're not setting $over anywhere, just printing a line which lies and
says it's equal to 1 if you find "-o" int the first command line argument.

Beyond that I can't help. Tell us more.

Oh, and do you have a name, apart from 'anonymous8653120'?

Cheers,

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to