PerlSufi has asked for the wisdom of the Perl Monks concerning the following question:
It is not making each pipe a new line. Does it have something to do with the limit number I passed to split? I thought negative would allow for as many possbile fields to be produced?use Config::Simple; my $cfg = new Config::Simple('/path/to/.file.ini'); $cfg = Config::Simple->import_from('/path/to/.file.ini', \%Config); my $description = $cfg->param("$ARGV[0]".".description"); my (@new) = split (/\|/, $description, -1); print @new;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: splitting pipe into new line
by toolic (Bishop) on Jun 14, 2013 at 17:23 UTC | |
by PerlSufi (Friar) on Jun 14, 2013 at 17:27 UTC | |
|
Re: splitting pipe into new line
by hippo (Archbishop) on Jun 14, 2013 at 18:23 UTC | |
by PerlSufi (Friar) on Jun 14, 2013 at 19:30 UTC |