Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
from command line, we are passing multiple values separated by commas such as sydney,delhi,NY,Russia. these values are getting stored under $runTest in the script. now i want to create a new file with contents of $runTest but as line by line. example
INPUT (contents of $runTest): sydney,delhi,NY,Russia OUTPUT (under new file: myfile): sydney delhi NY Russia
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: putting commas separated values into a new file line by line
by choroba (Cardinal) on Aug 11, 2020 at 16:15 UTC | |
by Anonymous Monk on Aug 11, 2020 at 16:58 UTC | |
by choroba (Cardinal) on Aug 11, 2020 at 17:03 UTC | |
by Anonymous Monk on Aug 11, 2020 at 17:06 UTC | |
by choroba (Cardinal) on Aug 11, 2020 at 17:15 UTC |