Help for this page

Select Code to Download


  1. or download this
    my @arr1 = (2, 34);
    my $val = 34;
    
    say "34" if $val ~~ @arr1;  #34
    
  2. or download this
    my @arr1 = (2, 34);
    my $val = 34;
    say "34" if @arr1 ~~ $val;
    
    #no output...??