![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: HELP fix error in fineStructure conversion scriptby Paladin (Vicar) |
on Jul 26, 2019 at 23:17 UTC ( #11103486=note: print w/replies, xml ) | Need Help?? |
I'm not sure where you got that switch syntax, but it's wrong. Check out perlsyn for the correct syntax (using given/when), although note that it's experimental, and you need to add a line to suppress the warnings as noted in the docs. You can rewrite it with a normal if/elsif/else chain.
In Section
Seekers of Perl Wisdom
|
|