chiragmp has asked for the wisdom of the Perl Monks concerning the following question:
but still got the line containing "=====" printed on screen. What am I doing wrong here? Thanks.while (<>) { chomp; @a = split if ($_ ne "==.*"); print "@a\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional split?
by ikegami (Patriarch) on Apr 07, 2009 at 22:39 UTC | |
by chiragmp (Initiate) on Apr 07, 2009 at 23:10 UTC | |
by Anonymous Monk on Apr 08, 2009 at 06:09 UTC | |
by chiragmp (Initiate) on Apr 07, 2009 at 22:51 UTC |