sg has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
Question: Why doesn't the script demos/demo_csv provided with Getopt::Declare behave as expected?
Here are some details:
The intent of the script is to have parameter specifications of the form:
( there's a tab before the STD) which would match the test arguments in the script of the form:<name:qs> , <id:+i> , <score:0+n> STD FORMAT [repeatable] { push @::students, {name=>$name, id=>$id, score=>$score} }
The match should happen since white space in the specifications around the commas mean optional white space in the argument. However, the script does not achieve the intent -- the above argument does not match. Adding spaces between the commas in the argument does result in a match.absmith,1234567,20
Question: why doesn't the match happen?
Thanks.
Back to
Seekers of Perl Wisdom