Help for this page

Select Code to Download


  1. or download this
    col1,col2
    vm1,fd1
    vm2,fd2
    vm3,fd3
    vm4,fd4
    
  2. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
        my $var = chomp ($row[1]);     ###   <<< this is the problem
        print $var;
    }
    
  3. or download this
    11111
    
  4. or download this
    foreach (@array)
    {
        my @row = split (/,/,$_);
        print $row[1];     ###  << Note that I am not printing "\n"
    }
    
  5. or download this
    vm_cluster
    fd1
    fd2
    fd3
    fd4
    
  6. or download this
    foreach (@array)
    {
    ...
        my $var = $row[1]; 
        print $var;
    }