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");
精彩评论