Yes, you are right, however, what I intend to answer, is the OP words ..as if the sub was called 3 times..
That was why I quoted the documentation, that though the sub is called each time an option is encountered, however it could be shown as though those options were gotten once!! Accessing only the the value to be stored, in this case a,b and c NOT like the OP has it test a, test b and test c.
In reply to Re^3: Getopt::Long subroutine question
by 2teez
in thread Getopt::Long subroutine question
by brassbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |