-Original Message-
From: Greg Schiedler [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 18, 2004 2:16 PM
To: [EMAIL PROTECTED]
Subject: next if statement
OK I'm trying to modify the code below to recognize an additional next if statement.
I have
included a snip of the file that th
Paul Archer wrote:
> 12:15pm, Greg Schiedler wrote:
>
>> OK I'm trying to modify the code below to recognize an additional
>> next if statement. I have included a snip of the file that the code
>> uses an input.
>>
>> Greg
>>
>> next if /Acct-Session-Id = ""/;This statment works!
>
12:15pm, Greg Schiedler wrote:
> OK I'm trying to modify the code below to recognize an additional next if statement.
> I have
> included a snip of the file that the code uses an input.
>
> Greg
>
> next if /Acct-Session-Id = ""/;This statment works!
>
A 'next if /./' is a short
The slashes are similar to a reg-ex expression on $_ in your example.
So basically it checks the line to see if that exists and does
something. In your case, for the ip to work, all you would have to do
is remove your quotes so the line matches, since the file doesnt have
quotes around the ip