[quote=Strazke,16.09.2005, 00:58]Kannst du mir mal bitte sagen, was can macht? Bei perldoc -f can gibts nix und er meckert bei mir:
Usage: UNIVERSAL::can(object-ref, method) at ...[/quote]
tatsächlich... ja, dann würde ich sagen, in zeile 42 ist ein fehler.
perl -wle'
sub test {
print "test"
}
my $x = "test";
if (my $code = main->can($x)) {
$code->()
}'
test
ansonsten - wie überraschend - perldoc UNIVERSAL\n\n
<!--EDIT|pq|1126859412-->