Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    Output:
    Entered in ELSE Loop
    Entered in IF Loop
    
  2. or download this
        if (grep (/^$arr3[1]$/, @arr2)) {
            print "Entered in IF Loop: /^$arr3[1]\$/ found in (@arr2)\n";
        } else {
            print "Entered in ELSE Loop: /^$arr3[1]\$/ not found in (@arr2
    +)\n";
        }