Steve Bertrand wrote:
Roman Makurin wrote:
On Wed, Jun 24, 2009 at 04:37:52AM +0200, Gunnar Hjalmarsson wrote:
Strange.
It looks like strictures and warnings are not enabled (@a and @b are not
declared). Try to add
use strict;
use warnings;
and see if that makes Perl give you a hint.
here is complite perl script which produces such results without
any warning:
I don't quite understand why it doesn't work using the while statement,
but since I prefer using 'for' when iterating over a list, I went ahead
and changed the code. It appears to work after doing so:
<snip>
It works for me either way. Maybe it is a bug in certain perl versions?
I tested it with 5.10.0 on Windows and 5.8.1 and 5.10.0 on Linux.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/