Perl: Calling a Subroutine
Calling a Subroutine
header(); # This will call the header subroutine,
print "First week totals: \$12,432.00\n";
print "Second week totals: \$13,598.00\n";
Once you've defined a subroutine, it can be called by name.
- Usually like: subname();
- You might also see: &subname();