Changeset 20b4e44 for app/src/ser
- Timestamp:
- 03/19/08 12:29:21 (17 years ago)
- Branches:
- master, help
- Children:
- 389de9a
- Parents:
- d593c5e
- git-author:
- pawelk <pawelk@…> (03/19/08 12:29:21)
- git-committer:
- pawelk <pawelk@…> (03/19/08 12:29:21)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/src/ser/ser
r754d2a3 r20b4e44 3 3 #package: UAM Text Tools 4 4 #component: ser (pattern search tool) 5 #author: Tomasz Obrêbski 5 #version: 1.0 6 #author: Tomasz Obrebski 6 7 7 8 use strict; 8 9 use Getopt::Long; 9 10 use File::Temp; 11 use File::HomeDir; 10 12 11 13 my $LIB_DIR="/usr/local/lib/utt"; 12 13 14 my $systemconfigfile='/usr/local/etc/utt/ser.conf'; 14 my $userconfigfile="$ENV{'HOME'}/.utt/ser.conf"; 15 16 #use lib "$ENV{HOME}/.utt/lib/perl"; 17 #use attr; 15 #my $userconfigfile="$ENV{'HOME'}/.utt/ser.conf"; 16 my $userconfigfile=home()."/.utt/ser.conf"; 18 17 19 18 Getopt::Long::Configure('no_ignore_case_always'); … … 161 160 if($flex) 162 161 { 163 system "cat $tmpfile_l"; 164 exit 0; 162 #system "cat $tmpfile_l"; 163 if(open(FLEX, $tmpfile_l)) { 164 while(<FLEX>) { 165 print @_; 166 } 167 close FLEX; 168 } 169 else { 170 print "Unable to open file $tmpfile_l\n"; 171 } 172 exit 0; 165 173 } 166 174 … … 169 177 system "$tmpfile_x"; 170 178 171 system "rm -f $tmpfile_l $tmpfile_c $tmpfile_x"; 179 #system "rm -f $tmpfile_l $tmpfile_c $tmpfile_x"; 180 unlink $tmpfile_l; 181 unlink $tmpfile_c; 182 unlink $tmpfile_x; 172 183
Note: See TracChangeset
for help on using the changeset viewer.