| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Bad idea to remove existing feature.
|
|
|
|
| |
User will no longer be able to run "pictor is wtf".
|
|
|
|
| |
It wasn't being used anywhere in code.
|
| |
|
| |
|
|
|
|
|
|
| |
Emacs was mixing them up.
(setq-default indent-tabs-mode nil) prevents this.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Using die makes the program shorter & simpler, initial reason for not
using die was that it exits with 255 code which generally means: "We
died, dunno why" & I thought I knew why so I should exit with
something else.
After talking to a few people looks like it doesn't matter much, I
myself have never written a program that checks for a specific exit
code so I switched to using die.
- print $line =~ s/\t/: /r and
- $total_acronyms++ if
- ($line =~ /^\Q${term}\E\t/i);
+ if ($line =~ /^\Q${term}\E\t/i) {
+ print $line =~ s/\t/: /r;
+ $total_acronyms++;
+ }
This change was made because the previous version didn't do what I
think it did. I could simply replace and with a comma & it would be
equivalent to the current version but then why not use the current
version? This looks better imo & will be easier to understand later.
|
| |
|
| |
|
|
|
|
|
|
| |
"pictor is term" looks better, even better if user renames this to wtf
then user would be able to run "wtf is wtf" instead of the boring
"pictor wtf" or "wtf wtf".
|
|
|
|
|
|
|
|
|
| |
We replace \t with ": " before printing to make the output neater.
Also \t is now used to match against instead of /s because it's what
defined in wtf manual.
Talking about OpenBSD 6.6 wtf manual here, I assume it will be the
same for original wtf.
|
|
|
|
|
|
|
| |
Variables shouldn't be called file, it's bad practice. So we use $fn
for filename.
http://perl-begin.org/tutorials/bad-elements/#sources_of_advice
|
| |
|
|
|