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
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
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
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 () , "
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