my $f = SomeClass->new ("somefile"); my @f = <$f>; #here I get only one line instead of all