Ronnie has asked for the wisdom of the Perl Monks concerning the following question:
I've tried this with & without the double quotes round the \n in the split statement and the best I get now - and the word useless springs to mind -is one field, xnynz. So the split hasn't completely worked it's removed the \'s from the field only! Sorry guys but NONE of your suggestions work! Have any of you actually tried this? Cheers, Ronniemy @lines = () ; # ($msg) = @ARGV ; # @lines = split /\n/,$msg ; # foreach (@lines) { print "\n$_\n" ; } # print "\n" ;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Split Decision
by BrowserUk (Patriarch) on Jan 06, 2005 at 14:18 UTC | |
by Aragorn (Curate) on Jan 06, 2005 at 14:37 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2005 at 14:47 UTC | |
by gellyfish (Monsignor) on Jan 06, 2005 at 14:54 UTC | |
by Aragorn (Curate) on Jan 06, 2005 at 14:58 UTC | |
Re: Split Decision
by gellyfish (Monsignor) on Jan 06, 2005 at 14:19 UTC | |
Re: Split Decision
by duff (Parson) on Jan 06, 2005 at 14:43 UTC | |
Re: Split Decision
by dragonchild (Archbishop) on Jan 06, 2005 at 14:43 UTC | |
Re: Split Decision
by perlsen (Chaplain) on Jan 07, 2005 at 11:43 UTC |