Re: debug code in BEGIN{} block

2006-01-20 Thread Tom Phoenix
On 1/19/06, Ken Perl [EMAIL PROTECTED] wrote:

 How to debug code in BEGIN{} block?

You can make a permanent breakpoint by assigning to $DB::single,
even during a BEGIN block.

$DB::single = 1 if $fred  7;

There's more detail in the perldebug manpage. Hope this helps!

--Tom Phoenix
Stonehenge Perl Training

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response




debug code in BEGIN{} block

2006-01-19 Thread Ken Perl
How to debug code in BEGIN{} block?

--
perl -e 'print unpack(u,62V5N\FME;G\!EFQ`9VUA:6PN8V]M\[EMAIL PROTECTED]
)'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/ http://learn.perl.org/first-response