END block weird behavior

2004-11-26 Thread Faisal Nasim
Hi, I have an END block in my Apache::PerlRun script. First I was trying to print something in the END{} block and it didn't show up on the browser. I tried writing to a file and it worked great! The weird thing is that when I try to use Dumper() call or any other module it doesn't work, it bai

Re: END block weird behavior

2004-11-30 Thread Faisal Nasim
Okay here's a demonstration: The test script is: #!/usr/local/bin/perl use strict; use vars qw ($mydata); $mydata = 'woodooeer'; my $data = ''; my $data2 = 'dingdong'; print "Content-type: text/plain\n\n"; print scalar localtime () , "\n\n"; print `cat /tmp/modperltest.txt`; END { open FI

Re: END block weird behavior

2004-12-01 Thread Stas Bekman
Faisal Nasim wrote: Okay here's a demonstration: The test script is: #!/usr/local/bin/perl use strict; use vars qw ($mydata); $mydata = 'woodooeer'; my $data = 'woodoo'; my $data2 = 'dingdong'; print "Content-type: text/plain\n\n"; print scalar localtime () , "\n\n"; print `cat /tmp/modperltest.txt

Re: END block weird behavior

2004-12-02 Thread Faisal Nasim
At 05:48 AM 12/2/2004, Stas Bekman wrote: Faisal Nasim wrote: Okay here's a demonstration: The test script is: #!/usr/local/bin/perl use strict; use vars qw ($mydata); $mydata = 'woodooeer'; my $data = ''; my $data2 = 'dingdong'; print "Content-type: text/plain\n\n"; print scalar localtime () , "

Re: END block weird behavior

2004-12-02 Thread Stas Bekman
Faisal Nasim wrote: At 05:48 AM 12/2/2004, Stas Bekman wrote: Faisal Nasim wrote: Okay here's a demonstration: The test script is: #!/usr/local/bin/perl use strict; use vars qw ($mydata); $mydata = 'woodooeer'; my $data = 'woodoo'; my $data2 = 'dingdong'; print "Content-type: text/plain\n\n"; print