# Interesting code...

Kipp the Kidd (mcmudge@mailbox.syr.edu)
Sun, 14 Jan 1996 20:20:30 PST

- Messages sorted by:[ date ][ thread ][ subject ][ author ]

    On Sun, 14 Jan 1996, Chuck Adams wrote:

    > >    "%{a,b%{c,d}e,f,%{g,%{h}},i}"
    >
    > lst = args[1];
    > lst[1] = "";  /* get rid of leading percent-sign */
    > lst = $string_utils:strip_chars(lst," ");
    > lst = strsub(lst, ",", "\",\"");
    > return $no_one:eval_d(lst);

    Instead of:        {"a","b%{c,d}e","f","%{g,%{h}}","i"}
    This code returns: {"a","b%{c","d}e","f","%{g","%{h}}","i"}
      Because, all the commas are sperated.  I don't want the commas inside
    %{}'s to be noticed.