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/ >
- getting memory info from system Chris Hedemark
- Re: getting memory info from system perl
- Re: getting memory info from system Chris Hedemark
- variable losing it's value Bob Mangold
- Re: variable losing it's value perl
- Re: variable losing it's value Jeff 'japhy' Pinyan
- Re: variable losing it's value Bob Mangold
- Re: variable losing it's value Chas Owens
- Re: variable losing it's value Michael Fowler
- Re: variable losing it's value Eric Beaudoin
- Re: variable losing it's value Michael Fowler
- Re: variable losing it's value Rogério Brito
- Re: getting memory info from system Chas Owens
- Re: getting memory info from system Chris Hedemark
- Re: getting memory info from system Chas Owens