RE: Perl Equiv of URLEncode()

2002-02-27 Thread Peterson, Tony
JavaScript is escape unescape -Original Message- From: Lara J. Fabans [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 11:58 AM To: [EMAIL PROTECTED] Subject: Perl Equiv of URLEncode() I'm being so braindead today. This is probably one of the downsides of coding in multip

RE: Perl Equiv of URLEncode()

2002-02-27 Thread John Edwards
there is a function called escape() in CGI.pm which you can import. There is also an unescape function. use CGI qw(:standard escape); #^ Import function $text = "This is a test $£#{}-+"; print "Original text $text\n"; $escaped = escape($text); print "Escaped text $escaped\n"