View Full Version : adding sub routines to perl
LawTown Junky
November 28th, 2000, 09:02
if i want to add a sub routine how do i do that
atlas
November 28th, 2000, 10:13
sub subroutineName
{
my($argument_a, $argument_b) = @_;
# where $argument_a & b are just things you pass
# the subroutine like &subrotineName("stuff","joe");
}
mjk@atlascgi.com
LawTown Junky
November 29th, 2000, 09:24
cool
now if i add that in how do i call upon it where i need it in my script?
atlas
November 29th, 2000, 15:51
I use
&subroutineName("arg1","arg2");
but
subroutineName("arg1","arg2");
will work too
mjk@atlascgi.com
LawTown Junky
December 8th, 2000, 22:07
cool i got it to work how i wanted thanx
Powered by vBulletin® Version 4.1.7 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.