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