Script-Carp

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

Revision history for Script-Carp

0.05    2012-12-30 13:18:00
	fix test.
	fix Changes.

0.04    2009-10-12 17:55:49
        add clipboard.
	add beep.

0.03    2009-06-13 15:12:00
        fix test script.
	add log.

0.02    2009-06-08 14:37:59
	modify test scrip for perl 5.6.2
	fix double "Died" message in some cases
	flx document.

lib/Script/Carp.pm  view on Meta::CPAN


=head1 SYNOPSIS

use this with options.

  use Script::Carp -stop; # display error and wait STDIN
  use Script::Carp -file => "error.txt"; # write message to error.txt
  use Script::Carp -stop, -file => "error.txt"; # mixed the above
  use Script::Carp -log  => "error_log.txt"; # append message to error_log.txt
  use Script::Carp -beep => "c d e f g"; # beep
  use Script::Carp -clip; # message is copied to clipboard

use class method with options

  Script::Carp->setup(-stop);
  Script::Carp->setup(-file => "error.txt");
  Script::Carp->setup(-log => "error_log.txt");
  Script::Carp->setup(-stop, -file => "error.txt");
  Script::Carp->setup(-beep => "c d e f g");
  Script::Carp->setup(-clip);

lib/Script/Carp.pm  view on Meta::CPAN

If you use Linux, you may need to 'modprobe pcspkr", 'xset -b on'

=head2 -clip

 use Script::Carp -clip;

or

 Script::Carp->setup(-clip);

message is copied to clipboard when script died.
It requires Clipboard module.

=head1 METHOD

=head2 setup

see L<SYNOPSYS> and L<OPTIONS>

=head1 IN eval BLOCK



( run in 1.138 second using v1.01-cache-2.11-cpan-2398b32b56e )