Perl chomp backwording the string
- by joe
my $cmd = "grep -h $text $file2 $file1 | tail -1 | awk '{print \$NF }' ";
my $port_number;
$port_number =`$cmd`;
print "port No : ==$port_number==";
the output is : "port No :== 2323
==
and i tried chomp its not working