Learn To Program
Increase Your Knowlegde and Build Your Skill!
Pages
(Move to ...)
Home
Me
▼
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,$_);
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment