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;
In reply to Re: Temp variable performace vs Inline behavior
by BrowserUk
in thread Temp variable performace vs Inline behavior
by Ransom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |