Ok so i was wondering how i would go about calling a perl subroutine from the command line. So if my program is Called test, and the subroutine is called fields i would lik
You can't do that unless the subroutine is a built-in Perl operator, like sqrt for instance, when you could write
sqrt
perl -e "print sqrt(2)"
or if it is provided by an installed module, say List::Util, like this
perl -MList::Util=shuffle -e "print shuffle 'A' .. 'Z'"