AC Current

Hello All

I would like to ask, is it possible to create an AC current using Perl Script? Perhaps by

oscillating the electric field strength?

Thank you very much