Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I tried
It prints things out likeforeach my $asd (@phrase){ chomp($asd); print "$asd\n"; }
The first line appears right but all others still have a leading space.hi there this and that and the other thing blah blah blah one two there four five six
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: chomp not working in array
by Fletch (Bishop) on Nov 15, 2004 at 21:16 UTC | |
|
Re: chomp not working in array
by Ovid (Cardinal) on Nov 15, 2004 at 21:04 UTC | |
|
Re: chomp not working in array
by eric256 (Parson) on Nov 15, 2004 at 21:22 UTC | |
|
Re: chomp not working in array
by Roy Johnson (Monsignor) on Nov 15, 2004 at 22:09 UTC | |
|
Re: chomp not working in array
by larryp (Deacon) on Nov 15, 2004 at 22:42 UTC | |
|
Re: chomp not working in array
by ercparker (Hermit) on Nov 16, 2004 at 06:20 UTC | |
|
Re: chomp not working in array
by TedPride (Priest) on Nov 16, 2004 at 14:56 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |