Consider the approach of simply running the case...esac expressions through your shell and then printing all the relevant variables.
Usually, it's easier to run a script through the existing shell instead of rebuilding what the shell does in Perl.
In reply to Re: Getting content of case statement appended by inner case statement
by Corion
in thread Getting content of case statement appended by inner case statement
by ararghat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |