Readers: 13
6 entries, 1 page |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
vec($rin,fileno(DATA),1) = 1;
for (;;) {
$condition = ($Timeout == 0) || select($rout=$rin, undef, undef, $Timeout);
if ($condition) {
last unless ($len = sysread(DATA, $buf, 1024));
if($Ascii) {
substr($buf,0,0)=$partial; ## prepend from last sysread
@buf=split(/\r?\n/,$buf); ## break into lines
if ($buf=~/\n$/) { $partial=''; } else { $partial=pop(@buf); }
foreach(@buf) { print DFILE $_,"\n"; }
} else {
last unless ( (syswrite(DFILE,$buf,$len)==$len) );
}
} else {
$Error = "Timeout while recieving data from $Host";
return &xferclean();
}
}
close DATA; # <-- Zeile 271 #################
close DFILE;
1
2
3
4
5
6
7
8
local($local, $remote) = @_;
local($ret, $len)=(0,0);
local($buf);
($remote = $local) unless $remote;
unless (open(DFILE, "$local")) { # <-- Zeile 450 ##########
$Error = "Open of local file $local failed: $!";
return undef;
}
QuoteAmbiguous call resolved as CORE::%s(), qualify as such or use &
(W ambiguous) A subroutine you have declared has the same name as a Perl keyword, and you have used the name without qualification for calling one or the other. Perl decided to call the builtin because the subroutine is not imported.
To force interpretation as a subroutine call, either put an ampersand before the subroutine name, or qualify the name with its package. Alternatively, you can import the subroutine (or pretend that it's imported with the use subs pragma).
To silently interpret it as the Perl operator, use the CORE:: prefix on the operator (e.g. CORE::log($x) ) or declare the subroutine to be an object method (see "Subroutine Attributes" in perlsub or attributes).
1 2 3
my $sca = ScaligerTime->time( time() ) or die $@; Ambiguous call resolved as CORE::time(),...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
typedef struct SCA{
int jd; // Julianday
int day; // as created
int month; // wie erstellt
int year; // wie erstellt
int leap; // 1 || 0
char age; // G || J
int wd; // DoW Mo:1,, So:7
int hour;
int minute;
int second;
} SCA;
SCA *scaliger_day(int julianday);
SCA *scaliger_date(char age, int day, int month, int year);
SCA *scaliger_time(int secsince);
6 entries, 1 page |