http://qs321.pair.com?node_id=11108723


in reply to Re^2: Parse variables from @output
in thread Parse variables from @output

That's spot on thanks. Chassis variable working. Any idea on the memory part?

$details{'Main Memory'} = $1 if (/^\s* Intel .* with (\S+) kB of memor +y/mi);

Replies are listed 'Best First'.
Re^4: Parse variables from @output
by Corion (Patriarch) on Nov 15, 2019 at 09:31 UTC

    Maybe now is a good moment to look at your regular expression and compare it with the input string.

    For example, there is a space after "Intel" in your regular expression, but no such space in your input string.

Re^4: Parse variables from @output
by Cisco_Dave (Novice) on Nov 15, 2019 at 10:15 UTC
    Yeah that was the only issue. Learning curve this is. Top man cheers