madM has asked for the wisdom of the Perl Monks concerning the following question:
GetOptions ( 'sub' => \&a ) @aminos= qw (A R N D C Q E G H I L K M F P S T W Y V B Z X); sub a { if( "$substr1$substr2" =~ /[^@aminos]/ ) { print "hello\n"; } print "@aminos\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: array empty when calling script with getopt::long
by graff (Chancellor) on Apr 29, 2014 at 01:51 UTC | |
|
Re: array empty when calling script with getopt::long
by Anonymous Monk on Apr 29, 2014 at 03:57 UTC | |
|
Re: array empty when calling script with getopt::long
by Laurent_R (Canon) on Apr 29, 2014 at 06:20 UTC | |
|
Re: array empty when calling script with getopt::long
by LanX (Saint) on Apr 29, 2014 at 01:34 UTC | |
by madM (Beadle) on Apr 29, 2014 at 01:38 UTC |