Re: PerlRequire's access to httpd.conf variables

2004-01-24 Thread Stas Bekman
Philip Mak wrote: In the following situation: ServerName site1.com PerlSetVar Global /home/site1/global PerlRequire site1.pl ServerName site2.com PerlSetVar Global /home/site2/global PerlRequire site2.pl With the above example httpd.conf, is there a way site1.pl can read the PerlSetVar Global

Re: GIF contents not "coming out"

2004-01-24 Thread Stas Bekman
Xavier Noria wrote: On Jan 25, 2004, at 0:05, Stas Bekman wrote: Ged Haywood wrote: Hello there, On Sat, 24 Jan 2004, semuel wrote: you don't need to "\r\n\r\n". "\n\n" will do the job. According to the standard you should send both \r and \n. It is bad practice to play fast and loose with standa

Re: GIF contents not "coming out"

2004-01-24 Thread Xavier Noria
On Jan 25, 2004, at 0:05, Stas Bekman wrote: Ged Haywood wrote: Hello there, On Sat, 24 Jan 2004, semuel wrote: you don't need to "\r\n\r\n". "\n\n" will do the job. According to the standard you should send both \r and \n. It is bad practice to play fast and loose with standards. http://www.w3.or

PerlRequire's access to httpd.conf variables

2004-01-24 Thread Philip Mak
In the following situation: ServerName site1.com PerlSetVar Global /home/site1/global PerlRequire site1.pl ServerName site2.com PerlSetVar Global /home/site2/global PerlRequire site2.pl With the above example httpd.conf, is there a way site1.pl can read the PerlSetVar Global and see "/home/s

Re: DBIx::Recordset, Perl 5.8.1, Tied Hashes and typeglobs

2004-01-24 Thread Stas Bekman
Kee Hinckley wrote: At 3:01 PM -0800 1/24/04, Stas Bekman wrote: Kee Hinckley wrote: DBIx::Recordset relies on the ability to return typeglobs from tied hashes. This appears to have gone away at some point. Take the following program below and try it under 5.6 and 5.8. Kee, please refrain f

Re: DBIx::Recordset, Perl 5.8.1, Tied Hashes and typeglobs

2004-01-24 Thread Kee Hinckley
At 3:01 PM -0800 1/24/04, Stas Bekman wrote: Kee Hinckley wrote: DBIx::Recordset relies on the ability to return typeglobs from tied hashes. This appears to have gone away at some point. Take the following program below and try it under 5.6 and 5.8. Kee, please refrain from asking unrelated to

Re[4]: GIF contents not "coming out"

2004-01-24 Thread Chris Drake
s> If you want to eliminate the need of the 'print ""' line, you should reverse s> the order of the commands: s> local $| = 1; print "Content-type: image/gif\r\n\r\n"; No, that doesn't work - I forget the exact error - something about "script did not send headers" I think. Kind Regards, Chris Dr

Re: GIF contents not "coming out"

2004-01-24 Thread Stas Bekman
Ged Haywood wrote: Hello there, On Sat, 24 Jan 2004, semuel wrote: you don't need to "\r\n\r\n". "\n\n" will do the job. According to the standard you should send both \r and \n. It is bad practice to play fast and loose with standards. http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html Not

Re: DBIx::Recordset, Perl 5.8.1, Tied Hashes and typeglobs

2004-01-24 Thread Stas Bekman
Kee Hinckley wrote: DBIx::Recordset relies on the ability to return typeglobs from tied hashes. This appears to have gone away at some point. Take the following program below and try it under 5.6 and 5.8. Kee, please refrain from asking unrelated to modperl questions at the modperl list. Thank

Re: [QUESTION] B::TerseSize won't run

2004-01-24 Thread Stas Bekman
Matt Sergeant wrote: On 22 Jan 2004, at 10:02, Ask Solem Hoel wrote: When I access /perl-status/ on this server i get a 500 Internal Server Error, and not much information in the error log but "Undefined subroutine &Apache::Status::handler called". If I remove the PerlModule B::TerseSize line f

DBIx::Recordset, Perl 5.8.1, Tied Hashes and typeglobs

2004-01-24 Thread Kee Hinckley
DBIx::Recordset relies on the ability to return typeglobs from tied hashes. This appears to have gone away at some point. Take the following program below and try it under 5.6 and 5.8. Here is the result under Perl 5.6 (MacOS X Jaguar) Undefined value Called fetch(foo) -> Setting to 1

RE: Re[2]: GIF contents not "coming out"

2004-01-24 Thread Ged Haywood
Hello there, On Sat, 24 Jan 2004, semuel wrote: > you don't need to "\r\n\r\n". "\n\n" will do the job. According to the standard you should send both \r and \n. It is bad practice to play fast and loose with standards. http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html 73, Ged. -- Repo

RE: Re[2]: GIF contents not "coming out"

2004-01-24 Thread semuel
Hello There. If you want to eliminate the need of the 'print ""' line, you should reverse the order of the commands: local $| = 1; print "Content-type: image/gif\r\n\r\n"; (That's because the $| is a flashing command. NM) And you don't need to "\r\n\r\n". "\n\n" will do the job. Semuel. -Or

Re: [QUESTION] B::TerseSize won't run

2004-01-24 Thread Matt Sergeant
On 22 Jan 2004, at 10:02, Ask Solem Hoel wrote: When I access /perl-status/ on this server i get a 500 Internal Server Error, and not much information in the error log but "Undefined subroutine &Apache::Status::handler called". If I remove the PerlModule B::TerseSize line from the apacheconfig,

Re: Re[2]: GIF contents not "coming out"

2004-01-24 Thread Ged Haywood
Hi there, On Sat, 24 Jan 2004, Chris Drake wrote: > Reading up on the meaning of "$/" I find that it's on page 666 of > the perl bible - is this an omen? Wrong beast. My copy of the Camel Book only goes up to page 645. > maybe a small extra manual section "EXAMPLES" ... > (especially for busy