cochrasc has asked for the wisdom of the Perl Monks concerning the following question:
My thought was to replace any spaces within brackets with dummy characters #%, split on spaces, discard brackets, then replace #% back with spaces. That would be a lot of work, and I'm sure there's a better way, I'm just too much of a noob to know what that is.aotone 1 {FixServer AOT1} FixServer {-F FxAOT1} {} 1 FxACH 2 achfxsvr FixServer {-F FxACH} routex 0 ESIS 2 {ESISAdministrative Server} java -Did=esisadmin routex 0
2005-09-13 Retitled by Arunbear, as per Monastery guidelines
Original title: 'There's gotta be a better way...'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing spaces and curly braces
by Roy Johnson (Monsignor) on Sep 12, 2005 at 19:34 UTC | |
by ikegami (Patriarch) on Sep 12, 2005 at 20:09 UTC | |
by cochrasc (Initiate) on Sep 12, 2005 at 19:58 UTC | |
|
Re: Parsing spaces and curly braces
by dragonchild (Archbishop) on Sep 12, 2005 at 19:44 UTC | |
|
Re: Parsing spaces and curly braces
by QM (Parson) on Sep 12, 2005 at 19:36 UTC | |
by ikegami (Patriarch) on Sep 12, 2005 at 20:02 UTC | |
by jonadab (Parson) on Sep 12, 2005 at 19:44 UTC |