You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Type/IO.pod
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,10 +22,11 @@ languages) append a newline character to the text. Thus the following code
22
22
23
23
print "Hi there!";
24
24
print "How are you?";
25
+
print (0..101).list;
25
26
26
27
displays
27
28
28
-
Hi there!How are you?
29
+
Hi there!How are you?0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
29
30
30
31
To print text implicitly including the trailing newline character, use
31
32
L<say|/type/IO#sub_say>.
@@ -38,19 +39,20 @@ Print the given text on C<$*OUT> (standard output) with appended C<$*OUT.nl-out>
38
39
39
40
=head2sub say
40
41
41
-
Print the given text, followed by a newline C<"\n"> on C<$*OUT> (standard
42
-
output).
42
+
Print the given text in human readable form, followed by a C<$*OUT.nl-out> (platform dependent newline) on C<$*OUT> (standard output). Long output may be truncted. For machine readable output use C<put>.
43
43
44
44
With C<say>, the example code as mentioned in the C<print> section will be
0 commit comments