Your problems come from this line:
next if /^#/ or /^s.*$/ or /^!/; # ignore comment linesand more precisely from the /^s.*$/ part. There you ignore all lines starting with 's' as comments, hence the missing commands (sho clo, set leng 0' and sho clo again. On the other hand empty (all space) lines are happily processed, hence the extra empty items in your lists
I think you meant /^\s*$/, at least it works with it!
In reply to Re: Parsing external config file
by mirod
in thread Parsing external config file
by ybiC
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |