produces the following error:#!/usr/bin/perl -w use strict; my $foo_text .= $_ while (<DATA>); print "$foo_text\n"; __DATA__ foo wears foo shoes at the foo store.
Any one know what's going on here? Please, to aid in my learning/understanding of Perl a reason why this does not work and not a solution would be very much appreciated.Use of uninitialized value at foo.pl line 4, <DATA> chunk 1 (#1)
In reply to while modifier by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |