Skip to main content

Timeline for Insert typos into text

Current License: CC BY-SA 3.0

22 events
when toggle format what by license comment
Feb 14, 2014 at 16:43 history edited user2846289 CC BY-SA 3.0
added 101 characters in body
Feb 13, 2014 at 19:26 history edited user2846289 CC BY-SA 3.0
added 253 characters in body
Feb 13, 2014 at 12:21 history edited user2846289 CC BY-SA 3.0
typo :-(
Feb 12, 2014 at 13:03 history edited user2846289 CC BY-SA 3.0
deleted 11 characters in body
Feb 12, 2014 at 3:04 comment added user2846289 I managed to edit to -7, not -1 ;-). Thanks for help.
Feb 12, 2014 at 3:02 history edited user2846289 CC BY-SA 3.0
deleted 926 characters in body
Feb 12, 2014 at 0:49 comment added tobyink I've got one more character for you. If you rename $s to $, (this built-in variable is the field separator for print, but you're not printing multiple fields anywhere, so it's built-in usage is irrelevant, making the variable ripe for reuse), then you can eliminate the white space in $s x3 making it just $,x3.
Feb 12, 2014 at 0:16 comment added user2846289 @tobyink, many thanks, especially for your second comment - how I didn't see this construct there, I don't know :-(. Sub is gone (saves us a couple of bytes). Barewords trick is nice, too, and actually I was already doing it when I read your comment. :-) Thanks again.
Feb 12, 2014 at 0:02 history edited user2846289 CC BY-SA 3.0
added 864 characters in body
Feb 11, 2014 at 21:30 history rollback user2846289
Rollback to Revision 8 - revert, bug fixing
Feb 11, 2014 at 18:57 history edited user2846289 CC BY-SA 3.0
added 148 characters in body
Feb 11, 2014 at 11:05 comment added tobyink Oh, I just noticed you have whitespace before gt'Z' too - that can be dropped. With all these changes, you should be able to get it down to 184 characters.
Feb 11, 2014 at 11:01 comment added tobyink The construct ($n=i$&=~/\pL/?3:2)?--$n?do{...}:$&x2:'' can be rewritten as ($&x2,'',do{...})[i$&=~/\pL/?3:2]. It means that the evaluation isn't lazy (it calculates all three ways that the character could be substituted before deciding on a substitution technique), but it works, and it saves another seven characters by my calculations.
Feb 11, 2014 at 10:43 comment added tobyink There's no need for a semicolon after the definition of sub i. You're not using strict, so 'QWERTYUIOP0ASDFGHJKL000ZXCVBNM' can be given as a bareword (saves two quote mark characters). Similarly, so can 'Z' (though this means you need to add a space between it and gt, so it only saves one character). Total savings: 4 characters.
Feb 10, 2014 at 15:50 history edited user2846289 CC BY-SA 3.0
deleted 13 characters in body
Feb 10, 2014 at 12:32 history edited user2846289 CC BY-SA 3.0
deleted 30 characters in body
Feb 10, 2014 at 12:22 history edited user2846289 CC BY-SA 3.0
added 165 characters in body
Feb 10, 2014 at 8:34 history edited user2846289 CC BY-SA 3.0
deleted 12 characters in body
Feb 10, 2014 at 2:08 history edited user2846289 CC BY-SA 3.0
[Edit removed during grace period]
Feb 10, 2014 at 2:00 history edited user2846289 CC BY-SA 3.0
added 407 characters in body
Feb 10, 2014 at 1:50 history edited user2846289 CC BY-SA 3.0
edited body
Feb 10, 2014 at 1:37 history answered user2846289 CC BY-SA 3.0