2 |
## $Id$ |
## $Id$ |
3 |
## ------------------------------------------------------------------------ |
## ------------------------------------------------------------------------ |
4 |
## $Log$ |
## $Log$ |
5 |
|
## Revision 1.2 2003/02/21 07:58:48 joko |
6 |
|
## enhanced error detection |
7 |
|
## |
8 |
## Revision 1.1 2003/02/20 20:20:54 joko |
## Revision 1.1 2003/02/20 20:20:54 joko |
9 |
## + initial commit |
## + initial commit |
10 |
## |
## |
35 |
my $xpq = shift; |
my $xpq = shift; |
36 |
my $options = shift; |
my $options = shift; |
37 |
|
|
38 |
$self->log( "xpq='$xpq'", 'info' ); |
$self->log( "xpq='$xpq'", 'debug' ); |
39 |
|
|
40 |
# trace |
# trace |
41 |
#print Dumper($self); |
#print Dumper($self); |
43 |
|
|
44 |
my $file = $self->{filename}; |
my $file = $self->{filename}; |
45 |
|
|
46 |
|
if (!$file) { |
47 |
|
$self->log("No filename given.", 'error'); |
48 |
|
return; |
49 |
|
} |
50 |
|
|
51 |
if (! -e $file) { |
if (! -e $file) { |
52 |
$self->log("File not found: '$file'.", 'error'); |
$self->log("File not found: '$file'.", 'error'); |
53 |
return; |
return; |