Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > rewrite

Reply
Thread Tools

rewrite

 
 
gcr
Guest
Posts: n/a
 
      11-29-2006
Hey this is cool! Expecially
map { s/%(..)/chr(hex $1)/eg; $_ } split /=/, $_, 2;

Thanks!
 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      11-29-2006
gcr wrote:
> Hey this is cool! Expecially
> map { s/%(..)/chr(hex $1)/eg; $_ } split /=/, $_, 2;


Well, did you just discover that Perl has map() and split()?
Sure these are nice functions and I am happy that they excite you so much
that you had to tell the world, but a bit of explanation about what you
tried to solve and how those functions work for you would have been nice.
The way you wrote this nobody nows what you really are talking about.

jue


 
Reply With Quote
 
 
 
 
gcr
Guest
Posts: n/a
 
      11-30-2006
In article <jzhbh.10329$IW2.8988@trndny03>,
"Jürgen Exner" <> wrote:

Apologies all around for breaking the thread. I was getting chastised
for not using CGI.pm - a poster was rewriting a regex. I liked the code,
made a comment. Sorry for the waste of precious bandwidth. What is this
map of which you speak ;-> That's a joke.

The agro level is too high here so I'll stick to lurking.
I tech support some political boards so I see enough flaming.



> gcr wrote:
> > Hey this is cool! Expecially
> > map { s/%(..)/chr(hex $1)/eg; $_ } split /=/, $_, 2;

>
> Well, did you just discover that Perl has map() and split()?
> Sure these are nice functions and I am happy that they excite you so much
> that you had to tell the world, but a bit of explanation about what you
> tried to solve and how those functions work for you would have been nice.
> The way you wrote this nobody nows what you really are talking about.
>
> jue

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS URL rewrite fangyong.F@gmail.com Cisco 1 01-18-2006 04:38 PM
PIX DNS rewrite vs Alias PES Cisco 0 07-17-2004 08:45 PM
Rewrite URL with Session possible? Michel ASP .Net 0 12-09-2003 12:59 PM
rewrite N lines in Perl Bfons Perl 4 09-24-2003 07:53 PM
mod rewrite Marcel Kraan (kraan.net) Perl 1 08-03-2003 10:38 PM



Advertisments