http://www.perlmonks.org?node_id=113704


in reply to Re: while modifier
in thread while modifier

my $foo_text; # this also works
$foo_text is not being initialized to $_ ?

I thought
my $foo_text .= $_ while (<DATA>);
was the same as a declaration/initialization statement
my $foo_text = "text";