p4raw-id: //depot/perl@29078
package bytes;
-our $VERSION = '1.02';
+our $VERSION = '1.03';
$bytes::hint_bits = 0x00000008;
Carp::croak("Undefined subroutine $AUTOLOAD called");
}
-sub length ($);
-sub chr ($);
-sub ord ($);
+sub length (_);
+sub chr (_);
+sub ord (_);
sub substr ($$;$$);
sub index ($$;$);
sub rindex ($$;$);
package bytes;
-sub length ($) {
+sub length (_) {
BEGIN { bytes::import() }
return CORE::length($_[0]);
}
CORE::substr($_[0], $_[1], $_[2], $_[3]) ;
}
-sub ord ($) {
+sub ord (_) {
BEGIN { bytes::import() }
return CORE::ord($_[0]);
}
-sub chr ($) {
+sub chr (_) {
BEGIN { bytes::import() }
return CORE::chr($_[0]);
}