[CWB] Question about CWB::CQP::More

Alberto Simões ambs at di.uminho.pt
Tue Dec 14 17:31:50 CET 2010



On 14/12/2010 16:16, Scott Sadowsky wrote:
> print STDOUT "\nBEFORE:\t$query_to_send_to_cqp;
> my $query_to_send_to_cqp = "[$query_type = ".$cqp->quote($query_item)."]";
> print STDOUT "\nAFTER:\t$query_to_send_to_cqp;
>
> ... I get a 0-byte output file (the file is opened earlier in the code,
> so that's why it exists), and the following in the terminal:
>
> BEFORE:
>
> The "BEFORE" value of $query_to_send_to_cqp is indeed and empty string,
> so that's okay. But the "AFTER" value should of course have the quoted
> string. And at the very least, I should see "AFTER:" with nothing after
> it on the terminal. But I don't.

That is strange:

[ambs at rachmaninoff ~]$ perl -MCWB::CQP::More -e '$c = 
CWB::CQP::More->new(); $a = $c->quote(""); print STDERR "-$a-\n";'

I get:

-""-
-- 
Alberto Simões


More information about the CWB mailing list