开发者

PERL: converting string and sending to URL via GET

开发者 https://www.devze.com 2023-02-03 17:35 出处:网络
I like to convert the two variables and pass them into this url. What is the best way to convert the string into gets string syntax for the url?

I like to convert the two variables and pass them into this url.

What is the best way to convert the string into gets string syntax for the url?

(UNIX_COMMAND AND PERLMAPHASHDATA)

thanks

m开发者_开发知识库y $PERLMAPHASHDATA = &MEC_GRAPH_DATA($APPENDIXDATA, $HASHDATA, $DOWNLOAD_FILE_PATH, \%USER_SELECTION);
my $UNIX_COMMAND = '/proj/gordon/runme.cgi -PERMAPHASH DATA';

print qq|
    <script>
        \$.get("scripts/DBD_SQLite/mysqlite_SAVE_SEARCH.cgi", function(data){\$("#tabs-112").html(data)});
    </script>
|;


It's not very clear what you are asking to do.

If you want to know how to take an arbitrary string and encode it so it's safe for use in URL string (URL/URI encoding, e.g. turning "=" into "%3D"), the usual Perl way to do it is URI::Escape module.

use URI::Escape;
$safe = uri_escape("10% is enough\n");
0

精彩评论

暂无评论...
验证码 换一张
取 消