меня уже поправили (с pre)

Date: 2007-03-22 09:11 am (UTC)
мне уже сказали, что надо быть проще и писать так:
sub mutate {
    my (@m, $s, $w);
    while($s = pop@_) {
        if($s =~ /\[(.*?)\]/) {
            push @_, map { ($w = $s) =~ s/\[.*?\]/$_/; $w } split '\|', $1;
        } else {
            push @m, $s;          
        }
    }
    return \@m;
}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

December 2024

S M T W T F S
1234567
891011121314
15161718192021
22232425 262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 2nd, 2026 09:33 am
Powered by Dreamwidth Studios