Subject: | select + format + empty lines |
Date: | Sat, 9 Jan 2010 23:00:25 +0000 (GMT) |
To: | bug-Shell-POSIX-Select [...] rt.cpan.org |
From: | Leo Butler <l.butler [...] ed.ac.uk> |
There is a conflict between Shell::POSIX::Select and empty lines following a format definition.
Here is an example:
#!/usr/bin/perl
use Shell::POSIX::Select;
&print_count();
sub nll()
{
0;
};
{
our $count;
format STDOUT =
^<<<
$count
.
sub print_count()
{
$count=0;
select(STDOUT);
write(STDOUT);
};
};
The error message one gets is
Unterminated <> operator at /home/work/lib/perl/select-bug.pl line 24.
If one eliminates the empty line 24, this script runs without fault.
------------------------
OS: debian lenny 5.03
# apt-cache showpkg libshell-posix-select-perl
Package: libshell-posix-select-perl
Versions:
0.05-1.2 (/var/lib/dpkg/status)
Description Language:
File: /var/lib/dpkg/status
MD5: 05c7d49ccad6e73447892d1f2afdbcca
Reverse Depends:
Dependencies:
0.05-1.2 - perl (2 5.6.0-16)
Provides:
0.05-1.2 -
Reverse Provides:
# uname -a
Linux lenneee 2.6.26-1-686 #1 SMP Fri Mar 13 18:08:45 UTC 2009 i686 GNU/Linux
--
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.