Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Parse variables from @output

by Corion (Pope)
on Nov 15, 2019 at 08:54 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (1)
As of 2021-10-20 22:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (82 votes). Check out past polls.

    Notices?