in reply to Re^2: Style Question: Throwaway Objects
in thread Style Question: Throwaway Objects
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Style Question: Throwaway Objects
by Aristotle (Chancellor) on Dec 09, 2002 at 09:06 UTC |