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

It's the beginning of a very long SQL statement.

I tried these variations, to no avail:

  506  echo select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links | perl 
-MHTML::Entities -ne "decode_entities()"
  507  perl -MHTML::Entities -ne "decode_entities()" 
"select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links"
  508  perl -MHTML::Entities -ne "decode_entities()" 
<select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links
  509* perl -MHTML::Entities -ne "decode_entities()" <echo 
select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links
  510  echo select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links | perl 
-MHTML::Entities -pe "decode_entities()"
  511  echo select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links | perl 
-MHTML::Entities -pe "decode_entities($_)"
  512  echo select%7Bsp%7D*%7Bsp%7Dfrom%7Bsp%7Dcore_links | perl 
-MHTML::Entities -ne "print decode_entities($_)"
  513  history


Thanks for your thoughts and suggestions on this.

-Kevin

--
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