Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^7: Query Does not work in Spreadsheet::WriteExcel

by dirtdog (Monk)
on Jul 24, 2020 at 21:03 UTC ( [id://11119777]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Query Does not work in Spreadsheet::WriteExcel
in thread Query Does not work in Spreadsheet::WriteExcel

No. I did not use any quotes to store the query.

  • Comment on Re^7: Query Does not work in Spreadsheet::WriteExcel

Replies are listed 'Best First'.
Re^8: Query Does not work in Spreadsheet::WriteExcel
by AnomalousMonk (Archbishop) on Jul 25, 2020 at 02:39 UTC

    How then did you generate the query string in Perl? Did you use a here-doc? Some variations of here-doc handle escapes (and interpolation).

    I think the point choroba is making is that a double-quote string constructor processes escapes (and also interpolates):

    c:\@Work\Perl\monks>perl -wMstrict -le "my $sq = '\Quick and \Easy \Upper \Limit \\UTTER \\LAUGH \Wow'; print qq{>$sq<}; " >\Quick and \Easy \Upper \Limit \UTTER \LAUGH \Wow< c:\@Work\Perl\monks>perl -wMstrict -le "my $dq = qq{\Quick and \Easy \Upper \Limit \\UTTER \\LAUGH \Wow}; print qq{>$dq<}; " Unrecognized escape \W passed through at -e line 1. >uick\ and\ asy PPER imit \utter \laugh wow<
    (Do you have warnings enabled?)


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11119777]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-23 07:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found