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
here is an example:
[root@mat ~]# cat b.pm #!/usr/bin/perl # # sub blah { print "Ahhh\n"; } return 1 [root@mat ~]# perl -Mb -e "blah"; Ahhh