Question about perl script modification

Dear all,

After MD simulation, I have got a xtd file. Then I have written a perl script to get the position of the atoms in set "c20". The perl script has been shown below:

script.png

Now I would like to get the position of the atoms which with the name of "C", how can I modify the script to get it?

Thanks,

Best regards,

Yours

CHENG Xu