/[cvs]/nfo/perl/libs/shortcuts.pm
ViewVC logotype

Diff of /nfo/perl/libs/shortcuts.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by jonen, Wed Jul 2 11:17:32 2003 UTC revision 1.20 by jonen, Mon Jun 21 14:13:21 2004 UTC
# Line 2  Line 2 
2  ##  $Id$  ##  $Id$
3  ## ---------------------------------------------------------------------------  ## ---------------------------------------------------------------------------
4  ##  $Log$  ##  $Log$
5    ##  Revision 1.20  2004/06/21 14:13:21  jonen
6    ##  added helper function
7    ##
8    ##  Revision 1.19  2004/05/11 19:45:30  joko
9    ##  now exporting RUNNING_IN_HELL
10    ##
11    ##  Revision 1.18  2003/12/05 04:58:04  joko
12    ##  + minor update: doesn't require IPC::Session anymore
13    ##
14  ##  Revision 1.17  2003/07/02 11:17:32  jonen  ##  Revision 1.17  2003/07/02 11:17:32  jonen
15  ##  minor changes  ##  minor changes
16  ##  ##
# Line 74  our @EXPORT_OK = qw( Line 83  our @EXPORT_OK = qw(
83    get_chomped    get_chomped
84    bool2status    bool2status
85    make_guid    make_guid
86      RUNNING_IN_HELL
87      RUNNING_IN_HEAVEN
88  );  );
89    
90    
# Line 84  use IPC::Run qw( start pump finish timeo Line 95  use IPC::Run qw( start pump finish timeo
95  use Carp;  use Carp;
96    
97  # NEW - 2003-06-23 for Linux (what about *BSD?)  # NEW - 2003-06-23 for Linux (what about *BSD?)
98  use IPC::Session;  #use IPC::Session;
99    
100  use File::Spec;  use File::Spec;
101  use Proc::Background;  use Proc::Background;
# Line 105  sub today { Line 116  sub today {
116  }  }
117    
118  sub RUNNING_IN_HELL () { $^O eq 'MSWin32' }  sub RUNNING_IN_HELL () { $^O eq 'MSWin32' }
119    sub RUNNING_IN_HEAVEN () { $^O =~ m/bsd/ }
120    
121    
122  sub get_executable {  sub get_executable {
# Line 337  sub run_cmd { Line 349  sub run_cmd {
349    
350    } else {    } else {
351      print STDOUT "run_cmd: system('$cmd').", "\n";      print STDOUT "run_cmd: system('$cmd').", "\n";
352        #print $ENV{PERL5LIB}, "\n";
353      system($cmd);      system($cmd);
354    }    }
355        

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.20

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed