Guest User

Untitled

a guest
May 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #!/usr/local/ActivePerl-5.10/bin/perl
  2. use strict;
  3. use warnings;
  4. use feature qw/say switch/;
  5.  
  6. # detect debugger ..
  7. SayDebugerStatus();
  8. sub SayDebugerStatus {
  9. print "Debugger ";
  10. given ($DB::single) {
  11. when (undef) {
  12. say "not loaded.";
  13. }
  14. when (0) {
  15. say "loaded but inactive";
  16. }
  17. default {
  18. say "loaded and active";
  19. }
  20. }
  21. return defined($DB::single) ? 1:0;
  22. }
  23.  
  24. if ( grep( /.*Komodo IDE.app/g, values %INC) ){
  25. say "Komodo is running"
  26. } else {
  27. say "Komodo is not running"
  28. };
  29.  
  30. use Data::Dumper;
  31. print Dumper %INC;
  32.  
  33. if ( $KOMODO_VERSION ){
  34. say "Komodo is running"
  35. } else {
  36. say "Komodo is not running"
  37. };
Add Comment
Please, Sign In to add comment