S
sbk
How do use the perl-5.10 'say' feature to print a single blank line?
gnat> cat test
#!/usr/bin/perl
use Perl6::Say;
say 'one';
say();
say 'three';
gnat> ./test
one
three
gnat>
gnat> cat ./test
#!/usr/bin/perl
use feature 'say';
say 'one';
say();
say 'three';
gnat>
gnat> ./test
one
Use of uninitialized value $_ in say at ./test line 4.
three
gnat>
gnat> cat ./test
#!/usr/bin/perl
use feature 'say';
say 'one';
say;
say 'three';
gnat>
gnat> ./test
one
Use of uninitialized value $_ in say at ./test line 4.
three
gnat>
--sk
Stuart Kendrick
FHCRC
gnat> cat test
#!/usr/bin/perl
use Perl6::Say;
say 'one';
say();
say 'three';
gnat> ./test
one
three
gnat>
gnat> cat ./test
#!/usr/bin/perl
use feature 'say';
say 'one';
say();
say 'three';
gnat>
gnat> ./test
one
Use of uninitialized value $_ in say at ./test line 4.
three
gnat>
gnat> cat ./test
#!/usr/bin/perl
use feature 'say';
say 'one';
say;
say 'three';
gnat>
gnat> ./test
one
Use of uninitialized value $_ in say at ./test line 4.
three
gnat>
--sk
Stuart Kendrick
FHCRC