LanceDeeply has asked for the wisdom of the Perl Monks concerning the following question:
any ideas?
use Text::ParseWords; my $string = "it can do this"; for ( parse_line ' ', 1, $string ) { print "[$_]\n"; } $string = "but it can't do this"; for ( parse_line ' ', 1, $string ) { print "[$_]\n"; } __DATA__ [it] [can] [do] [this]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Text::ParseWords parse_line containing quote
by simonm (Vicar) on Jul 24, 2003 at 18:35 UTC | |
by LanceDeeply (Chaplain) on Jul 24, 2003 at 19:01 UTC | |
by simonm (Vicar) on Jul 24, 2003 at 23:53 UTC |