Help for this page

Select Code to Download


  1. or download this
    my @a = qw( a x z );
    {
      local $" = "";
    ...
        print if /^[@a]{3}$/;  # /o might be good, too
      }
    }
    
  2. or download this
    my @a = qw( a x z );
    my $re = join '', @a;
    while (<>) {
      print if /^$re$/;  # again, /o might help
    }