parksbanyon has asked for the wisdom of the Perl Monks concerning the following question:
if($TARX eq "exe") { &binary ;} elsif($TARX eq "ini" || "txt") { &text ;} else { &file_man ;}
The first two (exe and txt/ini) find the correct sub's but the else (ie any other file type) is not, its going to the text sub. I tried a multitude of options and rearrangememts prior to posting, but to no avail. I'm stumped.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: if elsif else not working
by keszler (Priest) on Oct 10, 2013 at 02:54 UTC | |
by parksbanyon (Novice) on Oct 21, 2013 at 20:53 UTC | |
|
Re: if elsif else not working
by Athanasius (Archbishop) on Oct 10, 2013 at 02:56 UTC | |
|
Re: if elsif else not working
by kcott (Archbishop) on Oct 10, 2013 at 03:36 UTC | |
|
Re: if elsif else not working
by NetWallah (Canon) on Oct 10, 2013 at 05:06 UTC |