Fellow Monks, consider the following code
#!/usr/bin/perl use warnings; use strict; my $content; open(IN, "<", $ARGV[0]) or die $!; while ( $content .= <IN> ) { print $content; }; close(IN) or die $!;
Can someone explain in laymans words why .= causes an endless while loop?
In reply to endless loop while .= by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |