Not addressing your problem but you could save some typing when testing your $command.
... if ( $command =~ m{^(?:set|add|del)$} ) { ...
I hope this is of interest.
Cheers,
JohnGG
In reply to Re: Capture string that starts with #
by johngg
in thread Capture string that starts with #
by athanasia
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |