IP Address 1.2.3.4 Gateway 1.2.3.1 #### while() { chomp; # Remove the "\n" from the end of the line # now use $_ }