Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Document IO::print
  • Loading branch information
Paul Cochrane committed Feb 14, 2015
1 parent 9a69456 commit 211ed6e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib/Type/IO.pod
Expand Up @@ -11,6 +11,25 @@ particular object relates to input/output.
=head1 Routines
=head2 sub print
Print the given text on C<$*OUT> (standard output), e.g.:
print "Hi there!\n"; # Hi there!
Note that the C<print> function does I<not> (in contrast to some other
languages) append a newline character to the text. Thus the following code
print "Hi there!";
print "How are you?";
displays
Hi there!How are you?
To print text implicitly including the trailing newline character, use
L<say|type/IO#sub say>.
=head2 sub open
my $fh = open($path as IO, *%opts);
Expand Down

0 comments on commit 211ed6e

Please sign in to comment.