Gary Nielson wrote:
>
> Hi, there:
>
> What does the == 2 do in the line below?
>
> > $var = $_ if ( m!<SNML_BYLINE>! .. m!</SNML_BYLINE>! ) == 2;
This info IS available in the docs (from perlop pod):
The value returned is
either the empty string for false, or a sequence number (beginning with
1) for true. The sequence number is reset for each range encountered.
The final sequence number in a range has the string "E0" appended to it,
which doesn't affect its numeric value, but gives you something to
search for if you want to exclude the endpoint. You can exclude the
beginning point by waiting for the sequence number to be greater than 1.
If either operand of scalar ".." is a constant expression, that operand
is implicitly compared to the `$.' variable, the current line number.
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles http://www.todbe.com/
/ ) /--< o // // Mailto:[EMAIL PROTECTED] http://dbecoll.webjump.com/
-/-' /___/_<_</_</_ http://www.freeyellow.com/members/dbecoll/
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users