Bugs item #605033, was opened at 2002-09-05 05:50 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107940&aid=605033&group_id=7940
Category: Standard Library (Modules) Group: Release 5.6.1r* Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: for and while loops don't work Initial Comment: Hi, on the Mac emulator Basilisk II I installed 5.6.1r1. The following problem occurs: for and while loops doesn't seem to work. Just foreach loops. The following script gives the following output: #!/usr/bin/perl print "\n\n\nwhile\n"; $x=11; $i=0; while($i<$x){ print $i."\n"; $i++; } print "for \n"; for($i=0; $i<$x; $i++){ print $i."\n"; } print "foreach\n"; foreach $i (1..$x){ print $i."\n"; } Output: while for foreach 1 2 3 4 5 6 7 8 9 10 11 Umgebung: Basilisk II (emuliert nen 040er Mac mit MacOS 8.1, 64 MB Ram) Sorry, don't have a MacPerl on a classic mac, but the above script does work correctly on Solaris and Windows. But unfortunaltey I cannot check, if it would work on a real Mac (with MacPerl). Ciao Markus ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=107940&aid=605033&group_id=7940