Simple approach:

sub Debug($)
         {
         my($sMessage) = @_;
         open(DEBUG, "debug.txt") || die("Couldn't open debug file $!");
         print "$sMessage\n";
         close DEBUG;
         }

Debug("This is a debug message");
then you can read your messages after you've run the program.  I do that a 
lot when developing websites, as I do a lot of dynamic generation of pages 
that make heavy use of style sheets and positioning, etc.  Debugging prints 
to the browser screw up the look, which is sometimes the thing I'm trying 
to get debugged, or they may break the page altogether.


At 12:02 27.06.2001 +0800, Rajeev Rumale wrote:
>Thanks again.
>
>Thats a very Nice piece of information ?
>But unfortunatelly I am using IIS on Win2k platform.
>I still condsider it as a very useful and important piece of information on
>this list.
>
>with regards
>
>Rajeev Rumale
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>Rajeev Rumale
>MyAngel.Net Pte Ltd.,                                            Phone  :
>(65)8831530 (office)
>#04-01, 180 B, The Bencoolen,                               Email  :
>[EMAIL PROTECTED]
>Bencoolen Street, Singapore - 189648                     ICQ    : 121001541
>Website : www.myangel.net
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
>
>----- Original Message -----
>From: "Me" <[EMAIL PROTECTED]>
>To: "Rajeev Rumale" <[EMAIL PROTECTED]>; "'Beginner Perl'"
><[EMAIL PROTECTED]>
>Sent: Wednesday, June 27, 2001 11:13 AM
>Subject: Re: Debugging the CGI - Application
>
>
> > > Any more suggestion ?
> >
> > If you are allowed to modify your web server's setup, then:
> >
> >     http://www.masonhq.com/docs/manual/Mason.html
> >
> > and prepare for your world to be turned upside down...
> >
> >

Aaron Craig
Programming
iSoftitler.com

Reply via email to