in reply to Re^2: How to write macro in perl
in thread How to write macro in perl

It sounds like you want to learn Perl. I'd suggest you go to the O'Reilly web-site and look at their offerrings.