So, what have you tried? Have you had a look at perlrun already?
In reply to Re: how do i run this subroutine by Corion in thread how do i run this subroutine by kurtcobain