p4raw-id: //depot/perl@26405
printf $this @_;
}
-sub say {
- @_ or croak 'usage: $io->say(ARGS)';
- my $this = shift;
- use feature 'say';
- say $this @_;
+if ($] >= 5.009003) {
+ *say = eval q{ sub {
+ @_ or croak 'usage: $io->say(ARGS)';
+ my $this = shift;
+ use feature 'say';
+ say $this @_;
+ }};
+}
+else {
+ *say = sub { croak "say() is not implemented for this version of perl\n" };
}
sub getline {