in reply to Temp variable performace vs Inline behavior
Apart from the fact that, as posted, your two snippets do different things (and the second is missing a ')'), I'd do that this way:
my @devices = grep{ defined( $_ = parse_node( $_ ) ) } @nodes;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Temp variable performance vs Inline behavior
by Athanasius (Archbishop) on Jun 27, 2012 at 15:37 UTC | |
by tobyink (Canon) on Jun 27, 2012 at 16:44 UTC | |
|
Re^2: Temp variable performace vs Inline behavior
by Ransom (Beadle) on Jun 27, 2012 at 15:15 UTC | |
by BrowserUk (Patriarch) on Jun 27, 2012 at 15:25 UTC | |
by muba (Priest) on Jun 27, 2012 at 15:17 UTC |