Sumit Shah schrieb:
> Hello,
>
> I have created a very simple perl module (MyApache2::NewMod) using h2xs
> and installed it inside /usr/lib/Perl5.
>
> Following is the source:
>
> #file MyApache2/NewMod
> package MyApache2::NewMod;
>
> use strict;
> use warnings;
>
> sub handler {
>
>
Sumit Shah wrote:
>#Open a file for writing
>open(FH, "> test.txt") or die $!;
>print FH "Hello World !!!\n";
print can fail. You should check that it's succeeding:
print FH "Hello World !!!\n" or die $!;
--
Michael Peters
Developer
Plus Three, LP
Hello,
I have created a very simple perl module (MyApache2::NewMod) using h2xs
and installed it inside /usr/lib/Perl5.
Following is the source:
#file MyApache2/NewMod
package MyApache2::NewMod;
use strict;
use warnings;
sub handler {
#Open a file for writing
open(FH, "> test.