in reply to How do you name the possibilities?

You simplify the issue by allowing defaults to pass through. If the default burger has no cheese on a seeded, untoasted bun, then it'd be "Brg". Then, for each modification, use a Geek Code-like agglutinating scheme: "Brg+Chz++Tst" would be a burger with cheese, on a darkly toasted bun. "Chk++Pkl" would be a chicken sandwich with extra pickles.

As for "fitting into a valid Perl variable name", you've got that ALL wrong. Use a hash. Use a hash. Use a hash.

_____________________________________________________
Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;

Replies are listed 'Best First'.
Re^2: How do you name the possibilities?
by japhy (Canon) on Jul 07, 2004 at 19:05 UTC
Re^2: How do you name the possibilities?
by Anonymous Monk on Jul 07, 2004 at 19:41 UTC

    Point well taken. I wrote that as a lazy way of saying 'use only alphanumeric chars plus underscore' without considering the underlying connotations it would carry regarding bad coding practice -- also to avoid having to explain the 'real' reason for the constraint. One more reason to say what u really mean ... Next time it will suffice to just say m/[A-Za-z0-9_]/