Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Parse variables from @output

by Cisco_Dave (Novice)
on Nov 14, 2019 at 20:34 UTC ( #11108699=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Get the line with the chassis on
    
    ...
    $details{'Main Memory'} = $5 if (/^\S+ Intel (\S+)/i);
    
    }
    
  2. or download this
    # (IOS devices - Chassis and Main Memory)
    
    ...
    $details{'Chassis'} = $1;
    $details{'Main Memory'} = $3;
    }
    
  3. or download this
    # (WS-C3550-48's - Chassis)
    
    ...
    
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11108699]
Approved by haukex
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (2)
As of 2021-10-27 02:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (91 votes). Check out past polls.

    Notices?