I need a perl script to extract the starting and ending positions of a column
here is the input
HETATM 7749 C1 NFG A1001 -31.772 -7.604 -23.847 0.80 61.71 C
HETATM 7750 O1 NFG A1001 -30.806 -8.518 -23.305 0.80 65.42 O
HETATM 7751 C2 NFG A1001 -32.987 -7.507 -22.895 0.80 60.75 C
HETATM 7752 F NFG A1001 -34.161 -7.378 -23.591 0.80 60.24 F
HETATM 7753 C3 NFG A1001 -32.871 -6.337 -21.918 0.80 59.86 C
HETATM 7754 O3 NFG A1001 -33.668 -6.536 -20.739 0.80 59.28 O
HETATM 7755 C4 NFG A1001 -31.392 -6.167 -21.609 0.80 58.86 C
HETATM 7756 O4 NFG A1001 -31.150 -5.379 -20.446 0.80 57.89 O
HETATM 7757 C5 NFG A1001 -30.787 -5.553 -22.865 0.80 58.98 C
HETATM 7758 C6 NFG A1001 -29.272 -5.425 -22.793 0.80 58.68 C
HETATM 7759 O6 NFG A1001 -28.680 -6.725 -22.846 0.80 58.41 O
HETATM 7760 O5 NFG A1001 -31.154 -6.319 -24.031 0.80 60.35 O
HETATM 7761 C11 NFG A1001 -30.085 -9.565 -23.872 0.80 66.39 C
HETATM 7762 C12 NFG A1001 -29.121 -10.165 -23.041 0.80 66.65 C
HETATM 7763 N1 NFG A1001 -28.897 -9.736 -21.759 0.80 66.91 N
HETATM 7764 O11 NFG A1001 -29.546 -8.809 -21.297 0.80 66.97 O
HETATM 7765 O12 NFG A1001 -28.045 -10.270 -21.048 0.80 66.67 O
HETATM 7766 C13 NFG A1001 -28.350 -11.226 -23.507 0.80 66.53 C
HETATM 7767 C14 NFG A1001 -28.500 -11.725 -24.792 0.80 66.55 C
HETATM 7768 N2 NFG A1001 -27.683 -12.771 -25.140 0.80 66.72 N
HETATM 7769 O21 NFG A1001 -26.873 -13.217 -24.331 0.80 66.38 O
HETATM 7770 O22 NFG A1001 -27.734 -13.283 -26.248 0.80 66.70 O
HETATM 7771 C15 NFG A1001 -29.466 -11.137 -25.637 0.80 66.48 C
HETATM 7772 C16 NFG A1001 -30.257 -10.063 -25.182 0.80 66.43 C
The output I wanted is
A1001 7749
A1001 7772