Well, yes. But compared to turning a very readable
into a double-take inducing my $book = do { Spreadsheet::ParseExcel->new() }->Parse($filename); leaving a lexical around is a minor sin. When I have to choose between various sins, I'll go with the one that's readable.my $parser = Spreadsheet::ParseExcel->new() my $book = $parser->Parse($filename);
In reply to Re^3: Style Question: Throwaway Objects
by dws
in thread Style Question: Throwaway Objects
by seattlejohn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |