You're doing comparisons incorrectly. You can't say $x eq "Y" or "Z", you have to say $x eq "Y" or $x eq "Z". Because you're doing it this way, binhex() is ALWAYS called, because even if $hexbin is not "-h", the string "-H" is always true.if ($hexbin eq "-h"||"-H") { binhex(); } elsif ($hexbin eq "-b"||"-B") { hexbin(); }
In reply to Re: Hex editor
by japhy
in thread Hex editor
by Trag
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |