Help for this page

Select Code to Download


  1. or download this
    # hostname 123
    hostname 123
    ...
    ..
    ifconifg vif5-9 some data here
    
  2. or download this
    $/ = undef;
    while ( <DATA> )
            { 
            @col=split('#',$_);
            $/ = \n;
    
  3. or download this
    foreach (@col) {
            print "This is element : $i\n";
    ...
            }
            if (/ifconfig/) {
            print "found an ifconfig line\n";
    
  4. or download this
    Hostname :  hostname123
    # of vlans:  8
    ...
    Hostname : hostname456
    # of vlans: 9
    # of ifconfig lines: 9