Re: New match and subst replacements for =~ and !~ (was Re: RFC 135 (v2) Require explicit m on matches, even with ?? and // as delimiters.)

2000-08-26 Thread Mark Senn
Nathan Wiger <[EMAIL PROTECTED]> wrote: [...] > match; # all defaults (pattern is /\w+/?) > match /pat/;# match $_ > match /pat/, $str; # match $str > match /pat/, @strs; # match any of @strs > > subst; # like s///, pretty useless :-) > subst /pat

++ mutable argument problem

2017-12-14 Thread Mark Senn
# I define my @dice = ( # typepips on first die pips on second die tally ('normal',(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 5, 6), 0 xx 14), ('Sicherman', (1, 3, 4, 5, 6, 8), (1, 2, 2, 3, 3, 4), 0 xx 14) ); # and later do @dice[1;3;2]++; # and get # Cannot resolve caller post

Re: ++ mutable argument problem

2017-12-14 Thread Mark Senn
> # I define > my @dice = > ( > # typepips on first die pips on second die tally > ('normal',(1, 2, 3, 4, 5, 6), (1, 2, 3, 4, 5, 6), 0 xx 14), > ('Sicherman', (1, 3, 4, 5, 6, 8), (1, 2, 2, 3, 3, 4), 0 xx 14) > ); > # and later do > @dice[1;3;2]++; > # and get > # Cann

Re: How do I remove leading zeros?

2018-06-13 Thread Mark Senn
If $x is set to "01.02.03" (Not using normal message quoting to make message shorter. [1] ToddAndMargo[2] Norman Gaywood [3] Mark Senn) DOING $x ~~ s:global/"0"(\d)/ $0 /; [1] SETS $x TO"1 . 2 . 3"