When you do : foreach $line (<>){

that will print the last line in <>
rename $line in the foreach statement to something different,

RYan



On Tue, 19 Jun 2001, Bob Mangold wrote:

> I may have a bug somewhere in my code, but I can't find it. Before I look again
> though please answer this for me.
>
> If I execute:
>
>
> my ($line) = "hello";
> foreach $line (<>){
>      ..... whatever
> }
> print $line;
>
>
> Should it print the last line in <> or 'hello'?
>
> -Bob
>
> __________________________________________________
> Do You Yahoo!?
> Spot the hottest trends in music, movies, and more.
> http://buzz.yahoo.com/
>

Reply via email to