GMgKe586q6suSQnyqZLlGCooeWM
Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
Home
Me
Search
Wednesday, December 22, 2010
Perl Subroutines
To create a subroutine in Perl, type:
sub hello
{
print "Hello, World!\n";
}
To call it, type:
&hello;
or
$hello($_);
or
$hello(1+2,$_);
Perl Subroutines
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment