Would someone care to show how the lines
starting with my $v1, my $v2, my $v3 and my $v4 are 
being parsed.

The lines starting my $v1 and my $v2 gives warnings.
And the results are to say the least, curious.


use strict ;
use warnings ; 

my $q = "xxx" ; 
my @w = (1) ; 

my $v1 = $q =~ m!x! and @w == 0 ;
my $v2 = ($q =~ m!x!) and (@w == 0) ;
my $v3 = $q =~ m!x! && @w == 0 ;
my $v4 = @w == 0 and $q =~ m!x! ;

print "v1 = $v1\n" ; 
print "v2 = $v2\n" ; 
print "v3 = $v3\n" ; 
print "v4 = $v4\n" ; 

Peter

_______________________________________________
Perl mailing list
[email protected]
http://mail.perl.org.il/mailman/listinfo/perl

Reply via email to