Skip to main content
26 events
when toggle format what by license comment
Jun 6, 2015 at 2:34 comment added primo @Dennis for the previous version, it would have required parentheses. !~T is genius though, thanks!
Jun 6, 2015 at 2:32 history edited primo CC BY-SA 3.0
deleted 1 character in body
Jun 5, 2015 at 13:29 comment added Dennis I got that the T^ part, but somehow missed that lc changed the case of $'. Prepending lc to $' would have been slightly shorter. That should still work for either approach: lc$'!~(T^lc$_%2) or ($_%2x9^lc$')!~T
Jun 5, 2015 at 11:11 history edited primo CC BY-SA 3.0
deleted 1 character in body
Jun 5, 2015 at 8:40 history edited primo CC BY-SA 3.0
deleted 1 character in body
Jun 5, 2015 at 5:41 comment added primo @Dennis TT^01de, which would fail to work correctly if a range were suffixed with EVEN or ODD.
Jun 5, 2015 at 4:51 comment added Dennis Man, this is clever! Unless I'm missing something, you should be able to eliminate lc=~.
Jun 5, 2015 at 3:50 history edited primo CC BY-SA 3.0
deleted 3 characters in body
Jun 5, 2015 at 1:22 history edited primo CC BY-SA 3.0
added 2 characters in body
Jun 5, 2015 at 1:15 history edited primo CC BY-SA 3.0
added 3 characters in body
Jun 5, 2015 at 0:59 history edited primo CC BY-SA 3.0
deleted 10 characters in body
Jun 5, 2015 at 0:50 history edited primo CC BY-SA 3.0
added 166 characters in body
Jun 4, 2015 at 16:33 history edited primo CC BY-SA 3.0
deleted 5 characters in body
Jun 4, 2015 at 13:10 history rollback primo
Rollback to Revision 4
Jun 4, 2015 at 12:53 history edited primo CC BY-SA 3.0
edited body
Jun 4, 2015 at 12:47 history edited primo CC BY-SA 3.0
added 148 characters in body
Jun 4, 2015 at 2:35 comment added mbomb007 Note that the caveat must be fixed now, according to the newest test case.
Jun 4, 2015 at 1:08 history edited primo CC BY-SA 3.0
added 1 character in body
Jun 4, 2015 at 1:08 comment added primo @Dennis I was surprised myself when reading perlrun that "-F implicitly sets both -a and -n." I think it's best to add -a in this case, if it only works for 5.20 onwards.
Jun 3, 2015 at 17:16 comment added Dennis In case anybody else is having trouble: This seems to require a specific version of Perl. It works fine with 5.20, but prints nothing with 5.18.
Jun 3, 2015 at 15:26 history edited primo CC BY-SA 3.0
deleted 1 character in body
Jun 3, 2015 at 12:00 comment added Grimmy * is one character shorter than &&, making for an easy improvement: $\+=/\d+ ?-/*($'-$&>>/o|e/i)+1for@F}{
Jun 3, 2015 at 7:20 comment added primo @NotthatCharles added a caveat.
Jun 3, 2015 at 7:20 history edited primo CC BY-SA 3.0
added 263 characters in body
Jun 3, 2015 at 2:29 comment added Not that Charles how does this work for pg. 20: 13-15 even? or pg. 20: 13-14 even?
Jun 3, 2015 at 2:18 history answered primo CC BY-SA 3.0