Script to help convert HTML::Embperl 1.3.x websites to Embperl 2.2

2007-07-16 Thread Andrew O'Brien
Hi all, As part of migrating a large embperl site from HTML::Embperl I ended up whipping up a quick script to convert plus blocks and foreach loops to the format required by Embperl 2.x. There are still other issues as I work through things but these relate to either the current working director

Patch to 2.2.0 Embperl.pm to fix cookie header handling under mod_perl 2

2007-07-16 Thread Andrew O'Brien
Hi all, I'm surprised this hasn't come up for anyone else but there is a problem with line 355 of Embperl.pm when it attempts to get the request cookie headers using $req_rec->header_in(), namely header_in() doesn't exist in mod_perl 2 :) (See: http://perl.apache.org/docs/2.0/user/porting/compat.