Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Parse variables from @output

by Corion (Patriarch)
on Nov 15, 2019 at 08:54 UTC ( [id://11108721]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
       .qq/   cisco Nexus 3048 Chassis ("48x1GE + 4x10G Supervisor)\n/
    
  2. or download this
            $details{'Chassis'}     = $1 if (/^cisco Nexus (\S+)/i);
    
  3. or download this
            $details{'Chassis'}     = $1 if (/^\s*cisco Nexus (\S+)/i);
    
  4. or download this
            $details{'Chassis'}     = $1 if (/^\s*cisco Nexus (\S+)/mi);
    
  5. or download this
    $VAR1 = {
              'Chassis' => '3048'
    ...
              'Chassis' => 'WS-C3550-48',
              'Main Memory' => '65526K/8192K'
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-03-28 14:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found