in reply to Debugging Aid
Actually, even that statement should be unnecessary, too. :-) It looks like it's simple and good for what it does, but is there a reason for creating a separate script like this instead of using the perl debugger or even print statements within the original script?unlink "debug.log" if $type eq 'w';
Update: Ah, sorry, I think I misunderstood how it's to be used. In effect, this is a way of putting print statements in your original script. You may also want to look into Data::Dumper, which will let you print out data for types other than scalar.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Debugging Aid
by DaWolf (Curate) on Apr 12, 2002 at 16:25 UTC | |
by rinceWind (Monsignor) on Apr 13, 2002 at 09:40 UTC | |
by DaWolf (Curate) on Apr 15, 2002 at 02:08 UTC |