H
howa
Consider the codes:
#=====================
use Text:
arseWords;
use Data:
umper;
my $query =qq^"abc def" filetype
df def 'xyz 123' '^;
@new = parse_line(" ", 0, $query);
print Dumper @new;
#=====================
It cannot split the string,
But if ...
my $query =qq^"abc def" filetype
df def 'xyz 123' ''^;
Then it is ok, i.e.
$VAR1 = 'abc def';
$VAR2 = 'filetype
df';
$VAR3 = 'def';
$VAR4 = 'xyz 123';
$VAR5 = '';
Any comments?
#=====================
use Text:
use Data:
my $query =qq^"abc def" filetype
@new = parse_line(" ", 0, $query);
print Dumper @new;
#=====================
It cannot split the string,
But if ...
my $query =qq^"abc def" filetype
Then it is ok, i.e.
$VAR1 = 'abc def';
$VAR2 = 'filetype
$VAR3 = 'def';
$VAR4 = 'xyz 123';
$VAR5 = '';
Any comments?