Help for this page

Select Code to Download


  1. or download this
    $work =~ s{%(\w+)(?:\.(\w+))?}{
        defined $2
            ? $self->{'VARS'}{$1}{$2}
            : $self->{'VARS'}{default}{$1}
    }eg;
    
  2. or download this
    my $fml = $self->{'VARS'};
    $work =~ s{ % ( \w+ (?:\.\w+)* ) }{ dive($fml, split /\./, $1) }xegr;