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";
$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";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: while modifier
by suaveant (Parson) on Sep 21, 2001 at 01:07 UTC | |
by Anonymous Monk on Sep 21, 2001 at 01:12 UTC |
In Section
Seekers of Perl Wisdom