Help for this page

Select Code to Download


  1. or download this
    use Algorithm::Loops 'NestedLoops';
    
    ...
      [ @pat{ split //, $pattern } ],
      sub { print join("", @_), $/ }
    );
    
  2. or download this
    my %pat = (
      L => ['a' .. 'z'],
    ...
    
    my $glob = join "", @pat{ split //, $pattern };
    print "$_\n" for glob($glob);