You Tried HOW MANY Times?

OK, the tag “worst Perl” might be overstating the case, but we ran into a funny error message yesterday from a program that runs on all of our production equipment. As each lot is tracked into a piece of equipment, the program running on it contacts our MES (manufacturing execution system…

Else Clauses on Loops

I am curious whether anyone else would like to see else="font-size:12.0pt; mso-ascii-font-family:Calibri;mso-fareast-font-family:"Times New Roman"; mso-hansi-font-family:Ca…

Not Comparing The Way You Meant

Here’s another example of code taken, terrifyingly, from a script that a contractor was paid cash money to write. The contractor’s code included a script to remote into another system and perform a command. Most systems required ssh, but we had some older systems that required rsh instead. So the contractor made a configuration file that contained c…

Perl Challenge: Fun with Character Classes

Perl Challenge="font-size:12.0pt; mso-ascii-font-family:Calibri;mso-fareast-font-family:"Tim…

Three Sort Functions

Everyone (I’d have to assume) has written the two basic sort functions

  # sort strings case-insensitively…