2012/1/20 Andrey P <[email protected]> > Hi! > I don't understand why I need to use a list assignment for > say scalar(()=<$fh>); > but not for > say scalar(grep /./, <$fh>); >
Because grep gives a list context to its second operand, just like the nuke ( ()= ) operator does. ) Remember, a context is what's wanted, not what's given. ) -- iD
