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 ((?
You don't need two parenthesis pairs in that context, if fact, you don't
need any whitespace at all.
if(${_}eq$bad_guys_ip){more_stuff_here}
John
--
use Perl;
program
fulfillment
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]