gpurusho has asked for the wisdom of the Perl Monks concerning the following question:
---------------------------------------
Docs Legal:Legal100-106;QA:QAServer5
Legal Legal:Legal15;QA:QAServer5
Funding QA:Alpha,Beta;PROD:PROD1-5
-------------------------------------
if i parse the first line I should get .......
Docs Legal legal100
Docs Legal Legal101
Docs Legal Legal106
Docs QA QAServer5
....... and so on.
Here the delimiters are ; and : with ; separating the environments and : seperating the machines to be deployed from the environemnt name.
I tried parsing this and I ended up coding like any language with lots of if loops and splits. Is there a easy way of doing the above.
Thanks,
Ganesh
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsing a file - For differnet environments
by kvale (Monsignor) on Mar 22, 2004 at 18:47 UTC |