KEVIN ZEMBOWER wrote:
> Can I use a perl one-liner and the module HTML::Entities to decode a
> string like this from the command line?: 
> 
> select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links

Those aren't HTML entities. It looks more like URI escaping

> 
> It's the beginning of a very long SQL statement.
> 
> I tried these variations, to no avail:

[snip]

You can apply URI::Escape like this:

$ perl -MURI::Escape -le 'print uri_unescape(shift)'
select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links

Which prints:

   select{sp}*{sp}from{sp}core_links

Don't know what you need to do from there...


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to