Michael Weber wrote:
> I'm just not getting it.
>
> When do you use ( in a statement, when do you need to use ((, and is
> the space after either or both mandatory?
>
> For example, I coded this statement:
>
> if (( $_ eq $bad_guys_ip )) { more_stuff_here };
>
> Why the two (( in an if? And why does it seem to not work when I miss
> the space after the ((?
If this is pure Perl then it doesn't make any difference.
if (
($_
eq $bad_guys_ip) )
{more_stuff_here };
is fine (although the second pair of parentheses won't make any
difference either) as long as you also have a
sub more_stuff_here;
somewhere!
Can you give us a
bit more context, and say what error you're getting?
Cheers,
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]