Help for this page

Select Code to Download


  1. or download this
    my $foo = "bar";
    $foo =~ /ar/;
    print "Got $&!\n";
    $foo =~ /az/;
    print "Got $&!\n";
    
  2. or download this
    if ($foo =~ /ar/) {
        print "Got $&!\n";
    }
    $foo =~ /az/ and print "Got $&!\n";